Fix typo
Noah Zalev committed
Jan 8, 2022 at 14:01 UTC
965c9de165f38de98414ee865078ff90c88b43f4
1 file changed
+1
-1
meshagent.js
+1
-1
@@ -60,7 +60,7 @@ module.exports.CreateMeshAgent = function (parent, db, ws, req, args, domain) {
60
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
61
if (arg == 2) {
62
try {
63
- if (ws._socket.parent != null)
63
+ if (ws._socket._parent != null)
64
ws._socket._parent.end();
65
else
66
ws._socket.end();