diff --git a/src/ws/Socket.ts b/src/ws/Socket.ts index 5c69ef1..f6c4b96 100644 --- a/src/ws/Socket.ts +++ b/src/ws/Socket.ts @@ -124,11 +124,10 @@ export class Socket extends EventEmitter { } public setChannel(_id: string, set?: Partial, force: boolean = false) { + // Do we exist? if (this.isDestroyed()) return; - if (this.currentChannelID === _id) { - logger.debug("Guy in channel was already in"); - return; - } + // Are we trying to join the same channel like an idiot? + if (this.currentChannelID === _id) return; this.desiredChannel._id = _id; this.desiredChannel.set = set;