mirror of https://github.com/calzoneman/sync.git
Fix minor issue with preJoin patch
This commit is contained in:
parent
7134de4de5
commit
1f7cf66367
|
@ -469,7 +469,7 @@ Channel.prototype.preJoin = function (user, password) {
|
||||||
|
|
||||||
// Allow channel to unload if the only user disconnects without finishing a join
|
// Allow channel to unload if the only user disconnects without finishing a join
|
||||||
user.socket.on("disconnect", function () {
|
user.socket.on("disconnect", function () {
|
||||||
if (!user.inChannel() && self.users.length === 0) {
|
if (!user.inChannel() && !self.dead && self.users.length === 0) {
|
||||||
self.emit("empty");
|
self.emit("empty");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue