mirror of https://github.com/calzoneman/sync.git
Prevent crash due to activeLock being destroyed before callback
This commit is contained in:
parent
9a4237cd00
commit
6f654b16b8
|
@ -314,7 +314,9 @@ 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;
|
||||||
self.activeLock.release();
|
if (self.activeLock) {
|
||||||
|
self.activeLock.release();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue