Fix channel dead race condition (another one)

This commit is contained in:
calzoneman 2013-10-22 13:42:07 -05:00
parent 33e5f2e056
commit bc7a2e0ff1
2 changed files with 6 additions and 0 deletions

View File

@ -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 Sun Oct 20 20:02 2013 CDT
* lib/channel.js: Fix MOTD XSS filter stripping style tags * lib/channel.js: Fix MOTD XSS filter stripping style tags

View File

@ -1066,6 +1066,9 @@ Channel.prototype.broadcastNewUser = function(user) {
user.socket.emit("rank", user.rank); user.socket.emit("rank", user.rank);
} }
self.server.db.listAliases(user.ip, function (err, aliases) { self.server.db.listAliases(user.ip, function (err, aliases) {
if (self.dead)
return;
if(err) { if(err) {
aliases = []; aliases = [];
} }