From 76e360ae2add51593a917132750c0dcba5d9d9cb Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Fri, 6 Feb 2009 06:29:01 +0000 Subject: [PATCH] Fix an endless spin problem --- chrome/content/zotero/xpcom/storage.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/chrome/content/zotero/xpcom/storage.js b/chrome/content/zotero/xpcom/storage.js index 8d943c1cc..5f0caf74b 100644 --- a/chrome/content/zotero/xpcom/storage.js +++ b/chrome/content/zotero/xpcom/storage.js @@ -2479,6 +2479,12 @@ Zotero.Sync.Storage.Queue.prototype.start = function () { throw (this.Name + " queue is already running in " + "Zotero.Sync.Storage.Queue.start()"); } + + if (!this.queuedRequests) { + Zotero.debug("No requests to start in " + this.name + " queue"); + return; + } + this._running = true; this.advance(); }