mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-11-22 22:17:31 +03:00
Fix typo
This commit is contained in:
parent
3662a3c229
commit
965c9de165
@ -60,7 +60,7 @@ module.exports.CreateMeshAgent = function (parent, db, ws, req, args, domain) {
|
||||
if ((arg == 1) || (arg == null)) { try { ws.close(); if (obj.nodeid != null) { parent.parent.debug('agent', 'Soft disconnect ' + obj.nodeid + ' (' + obj.remoteaddrport + ')'); } } catch (e) { console.log(e); } } // Soft close, close the websocket
|
||||
if (arg == 2) {
|
||||
try {
|
||||
if (ws._socket.parent != null)
|
||||
if (ws._socket._parent != null)
|
||||
ws._socket._parent.end();
|
||||
else
|
||||
ws._socket.end();
|
||||
|
Loading…
Reference in New Issue
Block a user