1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-14 00:45:55 +00:00

check for failures to request counters in async way after viewfeed/view

This commit is contained in:
Andrew Dolgov
2008-05-21 05:38:28 +01:00
parent 06c88b8dc3
commit 6cc1fab322
4 changed files with 24 additions and 4 deletions

View File

@@ -2,6 +2,7 @@ var hotkeys_enabled = true;
var xmlhttp_rpc = Ajax.getTransport();
var notify_silent = false;
var last_progress_point = 0;
var async_counters_work = false;
/* add method to remove element from array */
@@ -626,8 +627,10 @@ function parse_counters_reply(transport, scheduled_call) {
}
function all_counters_callback2(transport) {
function all_counters_callback2(transport, async_call) {
try {
if (async_call) async_counters_work = true;
debug("<b>all_counters_callback2 IN: " + transport + "</b>");
parse_counters_reply(transport);
debug("<b>all_counters_callback2 OUT: " + transport + "</b>");