mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-08-08 06:43:49 +00:00
parent
08cfa88249
commit
7326a3a4cc
@ -404,7 +404,7 @@ Process the task queue, performing the next task if appropriate
|
|||||||
Syncer.prototype.processTaskQueue = function() {
|
Syncer.prototype.processTaskQueue = function() {
|
||||||
var self = this;
|
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
|
// 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
|
// Choose the next task to perform
|
||||||
var task = this.chooseNextTask();
|
var task = this.chooseNextTask();
|
||||||
// Perform the task if we had one
|
// Perform the task if we had one
|
||||||
|
Loading…
x
Reference in New Issue
Block a user