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

View file

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