mirror of https://github.com/calzoneman/sync.git
Fix channel dead race condition (another one)
This commit is contained in:
parent
33e5f2e056
commit
bc7a2e0ff1
|
@ -1,3 +1,6 @@
|
|||
Tue Oct 22 13:41 2013 CDT
|
||||
* lib/channel.js: Fix a channel dead race condition
|
||||
|
||||
Sun Oct 20 20:02 2013 CDT
|
||||
* lib/channel.js: Fix MOTD XSS filter stripping style tags
|
||||
|
||||
|
|
|
@ -1066,6 +1066,9 @@ Channel.prototype.broadcastNewUser = function(user) {
|
|||
user.socket.emit("rank", user.rank);
|
||||
}
|
||||
self.server.db.listAliases(user.ip, function (err, aliases) {
|
||||
if (self.dead)
|
||||
return;
|
||||
|
||||
if(err) {
|
||||
aliases = [];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue