Check if we're sync'ing before executing the callback

pull/1/head
Grégory Oestreicher 2016-12-18 20:32:09 +01:00
parent 82277b2c33
commit 6c744cf387
1 changed files with 1 additions and 1 deletions

View File

@ -293,7 +293,7 @@ function syncDeletedArticles( timerSource, props, cb )
var working = false; var working = false;
function processArticlesList() { function processArticlesList() {
if ( articles.length === 0 ) { if ( !working && articles.length === 0 ) {
cb(); cb();
} }
else { else {