1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-23 10:07:19 +00:00

Only call isReady() for sync adaptors that support it

Fixes #2522
This commit is contained in:
Jermolene 2016-08-06 14:45:29 +01:00
parent 08cfa88249
commit 7326a3a4cc

View File

@ -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