mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-09 15:40:18 +00:00
Lost of small fixes.
This commit is contained in:
parent
ec302db994
commit
14470a1de3
4 changed files with 44 additions and 23 deletions
|
@ -54,7 +54,7 @@ module.exports.CreateMeshUser = function (parent, db, ws, req, args, domain, use
|
|||
if (obj.serverStatsTimer != null) { clearInterval(obj.serverStatsTimer); delete obj.serverStatsTimer; }
|
||||
if (req.session && req.session.ws && req.session.ws == ws) { delete req.session.ws; }
|
||||
if (parent.wssessions2[ws.sessionId]) { delete parent.wssessions2[ws.sessionId]; }
|
||||
if (parent.wssessions[obj.user._id]) {
|
||||
if ((obj.user != null) && (parent.wssessions[obj.user._id])) {
|
||||
var i = parent.wssessions[obj.user._id].indexOf(ws);
|
||||
if (i >= 0) {
|
||||
parent.wssessions[obj.user._id].splice(i, 1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue