Fix race condition failing to properly log in user

This commit is contained in:
calzoneman 2014-04-12 12:22:30 -05:00
parent 60ba970c34
commit 54226c0ca5
2 changed files with 1 additions and 4 deletions

View File

@ -492,6 +492,7 @@ Channel.prototype.preJoin = function (user, password) {
}
user.socket.emit("rank", user.rank);
user.hasChannelRank = true;
user.emit("channelRank", user.rank);
if (self.permissions.seeplaylist > -1) {

View File

@ -95,10 +95,6 @@ function User(socket) {
self.initAdminCallbacks();
}
});
self.once("channelRank", function () {
self.hasChannelRank = true;
});
}
/**