1
0
Fork 0
mirror of https://github.com/Ylianst/MeshCentral.git synced 2025-03-09 15:40:18 +00:00

Server exception fix in IP-KVM mini router.

This commit is contained in:
Ylian Saint-Hilaire 2022-04-19 20:38:42 -07:00
parent 6105366a6d
commit 5ef32633d8
3 changed files with 19 additions and 7 deletions

View file

@ -1000,10 +1000,8 @@ function CreateMiniRouter(parent, nodeid, targetHost, targetPort) {
delete tcpSockets[tcpSocket];
try { tcpSocket.end(); } catch (ex) { console.log(ex); }
if (tcpSocket.relaySocket) { try { tcpSocket.relaySocket.close(); } catch (ex) { console.log(ex); } }
if (tcpSocket) {
delete tcpSocket.relaySocket.tcpSocket;
delete tcpSocket.relaySocket;
}
try { delete tcpSocket.relaySocket.tcpSocket; } catch (ex) { }
try { delete tcpSocket.relaySocket; } catch (ex) { }
}
}