mirror of https://github.com/calzoneman/sync.git
Fix possible race condition
This commit is contained in:
parent
ca7a9e83a5
commit
261abadf12
|
@ -199,7 +199,9 @@ Channel.prototype.loadDump = function() {
|
||||||
}
|
}
|
||||||
data.logins = data.logins || {};
|
data.logins = data.logins || {};
|
||||||
for(var ip in data.logins) {
|
for(var ip in data.logins) {
|
||||||
this.logins[ip] = data.logins[ip];
|
for(var i = 0; i < data.logins.length; i++) {
|
||||||
|
this.logins[ip].push(data.logins[ip][i]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
this.setLock(!(data.openqueue || false));
|
this.setLock(!(data.openqueue || false));
|
||||||
this.chatbuffer = data.chatbuffer || [];
|
this.chatbuffer = data.chatbuffer || [];
|
||||||
|
|
Loading…
Reference in New Issue