From 7326a3a4ccf552c5eb54682f48b3e108c9f4afd4 Mon Sep 17 00:00:00 2001 From: Jermolene Date: Sat, 6 Aug 2016 14:45:29 +0100 Subject: [PATCH] Only call isReady() for sync adaptors that support it Fixes #2522 --- core/modules/syncer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/syncer.js b/core/modules/syncer.js index d3481f69e..b0fbb459a 100644 --- a/core/modules/syncer.js +++ b/core/modules/syncer.js @@ -404,7 +404,7 @@ Process the task queue, performing the next task if appropriate Syncer.prototype.processTaskQueue = function() { var self = this; // Only process a task if the sync adaptor is fully initialised and we're not already performing a task. If we are already performing a task then we'll dispatch the next one when it completes - if(this.syncadaptor.isReady() && this.numTasksInProgress() === 0) { + if((!this.syncadaptor.isReady || this.syncadaptor.isReady()) && this.numTasksInProgress() === 0) { // Choose the next task to perform var task = this.chooseNextTask(); // Perform the task if we had one