From: Andrew Dolgov Date: Sun, 15 Feb 2009 20:50:10 +0000 (+0300) Subject: offline: fix infinite loop in sync X-Git-Tag: 1.3.1~8 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=c16694c84810e1a59da1a411e5c5aa385932f47d;p=tt-rss.git offline: fix infinite loop in sync --- diff --git a/offline.js b/offline.js index 7b711316..a509cebb 100644 --- a/offline.js +++ b/offline.js @@ -841,7 +841,7 @@ function offline_download_parse(stage, transport) { function update_offline_data(stage) { try { - if (stage) stage = 0; + if (!stage) stage = 0; if (!db || offline_mode || getInitParam("offline_enabled") != "1") return;