Fix minor issue with preJoin patch

This commit is contained in:
calzoneman 2014-03-21 09:26:41 -05:00
parent 7134de4de5
commit 1f7cf66367
1 changed files with 1 additions and 1 deletions

View File

@ -469,7 +469,7 @@ Channel.prototype.preJoin = function (user, password) {
// Allow channel to unload if the only user disconnects without finishing a join
user.socket.on("disconnect", function () {
if (!user.inChannel() && self.users.length === 0) {
if (!user.inChannel() && !self.dead && self.users.length === 0) {
self.emit("empty");
}
});