diff --git a/meshuser.js b/meshuser.js index 4ce979a3..4fb4fb2b 100644 --- a/meshuser.js +++ b/meshuser.js @@ -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); diff --git a/package.json b/package.json index 025f51c6..4689b154 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "meshcentral", - "version": "0.3.6-e", + "version": "0.3.6-f", "keywords": [ "Remote Management", "Intel AMT", diff --git a/views/default-min.handlebars b/views/default-min.handlebars index fc4479b8..94f87311 100644 --- a/views/default-min.handlebars +++ b/views/default-min.handlebars @@ -1,4 +1,4 @@ - {{{title}}}
{{{title}}}
{{{title2}}}

{{{logoutControl}}}

 

{{{title}}}
{{{title}}}
{{{title2}}}

{{{logoutControl}}}