1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-26 05:03:15 +00:00

1. Added console.log/info helper

2. Fixed bug with user-sessions adding virtual uids incorrectly
This commit is contained in:
Bryan Roe
2022-03-16 23:04:22 -07:00
parent b0f0ac24b3
commit 85ef080a86
4 changed files with 18 additions and 3 deletions

View File

@@ -691,6 +691,7 @@ function UserSessions()
for (var key in ret)
{
ret[key] = { Username: ret[key], SessionId: key, State: 'Active', uid: this.getUid(ret[key]) };
if (key.startsWith('pts/')) { delete ret[key]; }
}
}
catch (e)
@@ -702,10 +703,9 @@ function UserSessions()
for (i in vids)
{
var u = this.getUsername(vids[i].uid);
ret[i] = { Username: u, SessionId: vids[i].pid, State: 'Connected', uid: vids[i].uid, StationName: 'Xvfb-' + vids[i].uid };
ret.push({ Username: u, SessionId: vids[i].pid, State: 'Connected', uid: vids[i].uid, StationName: 'Xvfb-' + vids[i].uid });
}
Object.defineProperty(ret, 'Active', { value: showActiveOnly(ret) });
if (cb)