Clear last sync error when starting sync
This commit is contained in:
parent
62290e0bcd
commit
7f76b35ab4
|
@ -427,7 +427,6 @@ Zotero.Sync.Runner = new function () {
|
||||||
this.EventListener.init();
|
this.EventListener.init();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
this.sync = function () {
|
this.sync = function () {
|
||||||
if (_running) {
|
if (_running) {
|
||||||
throw ("Sync already running in Zotero.Sync.Runner.sync()");
|
throw ("Sync already running in Zotero.Sync.Runner.sync()");
|
||||||
|
@ -438,6 +437,7 @@ Zotero.Sync.Runner = new function () {
|
||||||
Zotero.Sync.Storage.sync
|
Zotero.Sync.Storage.sync
|
||||||
];
|
];
|
||||||
_running = true;
|
_running = true;
|
||||||
|
Zotero.Sync.Runner.lastSyncError = '';
|
||||||
this.clearSyncTimeout();
|
this.clearSyncTimeout();
|
||||||
this.setSyncIcon('animate');
|
this.setSyncIcon('animate');
|
||||||
this.next();
|
this.next();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user