Fix channel dead race condition (another one)
This commit is contained in:
parent
33e5f2e056
commit
bc7a2e0ff1
2 changed files with 6 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue