Prevent crash due to activeLock being destroyed before callback

This commit is contained in:
calzoneman 2015-12-13 00:22:18 -08:00
parent 9a4237cd00
commit 6f654b16b8
1 changed files with 3 additions and 1 deletions

View File

@ -314,8 +314,10 @@ Channel.prototype.joinUser = function (user, data) {
} else { } else {
user.account.channelRank = 0; user.account.channelRank = 0;
user.account.effectiveRank = user.account.globalRank; user.account.effectiveRank = user.account.globalRank;
if (self.activeLock) {
self.activeLock.release(); self.activeLock.release();
} }
}
}); });
} }
}); });