mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-01-13 16:03:20 -05:00
switch end/close
close ws not end end http not close
This commit is contained in:
parent
aa58afcc3a
commit
c492aae484
@ -181,7 +181,7 @@ module.exports.CreateWebRelaySession = function (parent, db, req, args, domain,
|
|||||||
tunnels = null;
|
tunnels = null;
|
||||||
|
|
||||||
// Close any pending requests
|
// Close any pending requests
|
||||||
for (var i in pendingRequests) { if (pendingRequests[i][2] == true) { pendingRequests[i][1].end(); } else { pendingRequests[i][1].close(); } }
|
for (var i in pendingRequests) { if (pendingRequests[i][2] == true) { pendingRequests[i][1].close(); } else { pendingRequests[i][1].end(); } }
|
||||||
|
|
||||||
// Notify of session closure
|
// Notify of session closure
|
||||||
if (obj.onclose) { obj.onclose(obj.userid + '/' + obj.sessionId); }
|
if (obj.onclose) { obj.onclose(obj.userid + '/' + obj.sessionId); }
|
||||||
|
Loading…
Reference in New Issue
Block a user