Commit c103c288 authored by nanahira's avatar nanahira

fix

parent a0b5faaf
......@@ -308,6 +308,8 @@ if settings.modules.challonge.enabled
refresh_challonge_cache = () ->
challonge_cache[0] = null
challonge_cache[1] = null
return
refresh_challonge_cache()
challonge.participants._index({
id: settings.modules.challonge.tournament_id,
callback: (() ->
......@@ -320,8 +322,6 @@ if settings.modules.challonge.enabled
return
)
})
return
refresh_challonge_cache()
setInterval(refresh_challonge_cache, 30000)
# 获取可用内存
......
......@@ -360,6 +360,8 @@
refresh_challonge_cache = function() {
challonge_cache[0] = null;
challonge_cache[1] = null;
};
refresh_challonge_cache();
challonge.participants._index({
id: settings.modules.challonge.tournament_id,
callback: (function() {
......@@ -369,8 +371,6 @@
});
})
});
};
refresh_challonge_cache();
setInterval(refresh_challonge_cache, 30000);
}
......
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