hopefully fix promise rejection for session counter
This commit is contained in:
parent
f064f7b1be
commit
ee04d03bdb
1 changed files with 1 additions and 1 deletions
|
@ -74,7 +74,7 @@ class GatewayServer extends EventEmitter {
|
|||
ws.alive = true;
|
||||
});
|
||||
ws.on("close", async () => {
|
||||
if (this.sessionCounters[ws.session.user._id] <= 1) {
|
||||
if (ws.session.user && this.sessionCounters[ws.session.user._id] <= 1) {
|
||||
this.inChannel(ws.channels[0], (client) => {
|
||||
console.log(client.session);
|
||||
client.send(packet("EVENT_CHANNEL_MEMBERS", {
|
||||
|
|
Reference in a new issue