From 6c744cf3871202274c2f84ce3d9e363d3e67f773 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9gory=20Oestreicher?= Date: Sun, 18 Dec 2016 20:32:09 +0100 Subject: [PATCH] Check if we're sync'ing before executing the callback --- qml/js/WallaBase.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qml/js/WallaBase.js b/qml/js/WallaBase.js index f8702c2..f20d490 100644 --- a/qml/js/WallaBase.js +++ b/qml/js/WallaBase.js @@ -293,7 +293,7 @@ function syncDeletedArticles( timerSource, props, cb ) var working = false; function processArticlesList() { - if ( articles.length === 0 ) { + if ( !working && articles.length === 0 ) { cb(); } else {