mirror of
https://github.com/stagehacks/Cue-View.git
synced 2026-08-04 05:17:47 +00:00
close TCP sockets before deleting device
prevents a situation where active TCP traffic would prevent a device from being visually deleted
This commit is contained in:
@@ -205,6 +205,7 @@ module.exports.deleteActive = function deleteActive() {
|
||||
);
|
||||
|
||||
if (choice) {
|
||||
device.connection.destroy();
|
||||
VIEW.removeDeviceFromList(device);
|
||||
delete devices[device.id];
|
||||
SAVESLOTS.removeDevice(device);
|
||||
|
||||
Reference in New Issue
Block a user