Commit 41249396 authored by nanahira's avatar nanahira

fix

parent c4395e62
...@@ -280,8 +280,7 @@ if settings.modules.challonge.enabled ...@@ -280,8 +280,7 @@ if settings.modules.challonge.enabled
challonge_cache[challonge_type] = data challonge_cache[challonge_type] = data
_callback(err, data) _callback(err, data)
while challonge_queue_callbacks[challonge_type].length while challonge_queue_callbacks[challonge_type].length
cur_callback = challonge_queue_callbacks[challonge_type][0] cur_callback = challonge_queue_callbacks[challonge_type].splice(0, 1)[0]
challonge_queue_callbacks[challonge_type].splice(0, 1)
cur_callback(err, data) cur_callback(err, data)
is_requesting[challonge_type] = false is_requesting[challonge_type] = false
return return
......
...@@ -329,8 +329,7 @@ ...@@ -329,8 +329,7 @@
} }
_callback(err, data); _callback(err, data);
while (challonge_queue_callbacks[challonge_type].length) { while (challonge_queue_callbacks[challonge_type].length) {
cur_callback = challonge_queue_callbacks[challonge_type][0]; cur_callback = challonge_queue_callbacks[challonge_type].splice(0, 1)[0];
challonge_queue_callbacks[challonge_type].splice(0, 1);
cur_callback(err, data); cur_callback(err, data);
} }
is_requesting[challonge_type] = false; is_requesting[challonge_type] = false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment