Fix race condition for siteadmin rank socket frames

This commit is contained in:
Calvin Montgomery 2017-03-03 23:34:27 -08:00
parent 6672f5f75e
commit aea456436e
2 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@
"author": "Calvin Montgomery", "author": "Calvin Montgomery",
"name": "CyTube", "name": "CyTube",
"description": "Online media synchronizer and chat", "description": "Online media synchronizer and chat",
"version": "3.30.2", "version": "3.30.3",
"repository": { "repository": {
"url": "http://github.com/calzoneman/sync" "url": "http://github.com/calzoneman/sync"
}, },

View File

@ -333,7 +333,7 @@ Channel.prototype.joinUser = function (user, data) {
if (user.inChannel()) { if (user.inChannel()) {
self.broadcastAll("setUserRank", { self.broadcastAll("setUserRank", {
name: user.getName(), name: user.getName(),
rank: rank rank: user.account.effectiveRank
}); });
} }
} }