mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-12-25 06:35:54 -05:00
check for ws equality on close, like original
This commit is contained in:
parent
8368c8e641
commit
cb8337c3a3
@ -5728,7 +5728,7 @@ module.exports.CreateMeshUser = function (parent, db, ws, req, args, domain, use
|
||||
|
||||
function serverCommandClose(command) {
|
||||
// Close the web socket session
|
||||
try { delete obj.req.session.ws; } catch (e) { }
|
||||
try { if (obj.req.session.ws == ws) delete obj.req.session.ws; } catch (e) { }
|
||||
try { ws.close(); } catch (e) { }
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user