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:
parent
6105366a6d
commit
5ef32633d8
3 changed files with 19 additions and 7 deletions
|
@ -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) { }
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue