Check if we're sync'ing before executing the callback
parent
82277b2c33
commit
6c744cf387
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue