From f0856bac79cd841effe5cba568bf606946e13c99 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Tue, 8 Jul 2008 19:12:30 +0000 Subject: [PATCH] Don't trigger autosync on 'refresh' event --- chrome/content/zotero/xpcom/sync.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/sync.js b/chrome/content/zotero/xpcom/sync.js index a4d5ac93d..af4d1f20d 100644 --- a/chrome/content/zotero/xpcom/sync.js +++ b/chrome/content/zotero/xpcom/sync.js @@ -1039,7 +1039,10 @@ Zotero.Sync.Server = new function () { } // {} implements nsITimerCallback - _autoSyncTimer.initWithCallback({ notify: function () { + _autoSyncTimer.initWithCallback({ notify: function (event, type, ids) { + if (event == 'refresh') { + return; + } if (_syncInProgress) { Zotero.debug('Sync already in progress -- skipping auto-sync'); return;