mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-11-29 13:28:07 -05:00
check for ws equality on close, like original
This commit is contained in:
@@ -5728,7 +5728,7 @@ module.exports.CreateMeshUser = function (parent, db, ws, req, args, domain, use
|
|||||||
|
|
||||||
function serverCommandClose(command) {
|
function serverCommandClose(command) {
|
||||||
// Close the web socket session
|
// 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) { }
|
try { ws.close(); } catch (e) { }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user