mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-09 15:40:18 +00:00
Version 0.7.4
This commit is contained in:
parent
b0b3339c4b
commit
b11b974873
6 changed files with 1923 additions and 1887 deletions
|
@ -1336,6 +1336,14 @@ module.exports.CreateMeshAgent = function (parent, db, ws, req, args, domain) {
|
|||
else if (command.type == 'msg') { obj.sessions.msg = command.value; }
|
||||
else if (command.type == 'app') { obj.sessions.app = command.value; }
|
||||
}
|
||||
|
||||
// Any "help" session must have an associated app, if not, remove it.
|
||||
if (obj.sessions.help != null) {
|
||||
for (var i in obj.sessions.help) { if (obj.sessions.app[i] == null) { delete obj.sessions.help[i]; } }
|
||||
if (Object.keys(obj.sessions.help).length == 0) { delete obj.sessions.help; }
|
||||
}
|
||||
|
||||
// Inform everyone of updated sessions
|
||||
obj.updateSessions();
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue