diff --git a/channel.js b/channel.js index 1ed15fca..4a84d1e5 100644 --- a/channel.js +++ b/channel.js @@ -317,6 +317,7 @@ Channel.prototype.userLeave = function(user) { // Their socket might already be dead, so wrap in a try-catch try { user.socket.leave(this.name); + user.socket.destroy(); } catch(e) {}