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:
sparks-alec
2023-01-08 22:12:31 -05:00
parent 2393e8b459
commit c8a23ee2b3
+1
View File
@@ -205,6 +205,7 @@ module.exports.deleteActive = function deleteActive() {
);
if (choice) {
device.connection.destroy();
VIEW.removeDeviceFromList(device);
delete devices[device.id];
SAVESLOTS.removeDevice(device);