commit 76e360ae2add51593a917132750c0dcba5d9d9cb parent f307698ae3cec1b420a52691dce10f72cbf83e57 Author: Dan Stillman <dstillman@zotero.org> Date: Fri, 6 Feb 2009 06:29:01 +0000 Fix an endless spin problem Diffstat:
| M | chrome/content/zotero/xpcom/storage.js | | | 6 | ++++++ |
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git 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(); }