Commit 68566ec6 authored by nanahira's avatar nanahira

Merge branch 'mc'

parents b7acd8c3 41249396
...@@ -380,8 +380,7 @@ if settings.modules.challonge.enabled ...@@ -380,8 +380,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
......
...@@ -472,8 +472,7 @@ ...@@ -472,8 +472,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