Clear last sync error when starting sync

This commit is contained in:
Dan Stillman 2008-09-10 16:53:11 +00:00
parent 62290e0bcd
commit 7f76b35ab4

View File

@ -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();