fixed glitch on connection drop
This commit is contained in:
+1
-1
@@ -66,7 +66,7 @@ export class wssServer {
|
|||||||
this.Users2uuids[userId].delete(uuid);
|
this.Users2uuids[userId].delete(uuid);
|
||||||
if(this.Users2uuids[userId].size == 0) this.OnlineUsers.delete(userId);
|
if(this.Users2uuids[userId].size == 0) this.OnlineUsers.delete(userId);
|
||||||
}
|
}
|
||||||
this.allRediscnx.forEach(cnx => delete cns.wssConnections[uuid])
|
this.allRediscnx.forEach(cnx => delete cnx.wssConnections[uuid])
|
||||||
this.fanoutOnlineUsers(this.getOnlineUsers());
|
this.fanoutOnlineUsers(this.getOnlineUsers());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user