mirror of https://github.com/calzoneman/sync.git
Fix fix unleader bug
This commit is contained in:
parent
ad705e8779
commit
7d36f3e87a
|
@ -471,7 +471,7 @@ Channel.prototype.demoteUser = function(actor, name) {
|
|||
// but you never know
|
||||
Channel.prototype.changeLeader = function(name) {
|
||||
if(this.leader != null) {
|
||||
var old = leader;
|
||||
var old = this.leader;
|
||||
this.leader = null;
|
||||
this.broadcastRankUpdate(old);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue