commit 7f76b35ab4a1a37a08230eb7edd03a970ab53306
parent 62290e0bcd88909243a5bf8ef35436916e078326
Author: Dan Stillman <dstillman@zotero.org>
Date: Wed, 10 Sep 2008 16:53:11 +0000
Clear last sync error when starting sync
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/chrome/content/zotero/xpcom/sync.js b/chrome/content/zotero/xpcom/sync.js
@@ -427,7 +427,6 @@ Zotero.Sync.Runner = new function () {
this.EventListener.init();
}
-
this.sync = function () {
if (_running) {
throw ("Sync already running in Zotero.Sync.Runner.sync()");
@@ -438,6 +437,7 @@ Zotero.Sync.Runner = new function () {
Zotero.Sync.Storage.sync
];
_running = true;
+ Zotero.Sync.Runner.lastSyncError = '';
this.clearSyncTimeout();
this.setSyncIcon('animate');
this.next();