зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1152703 - Prevent desktop reading list sync errors from preventing sync from starting again. r=adw
This commit is contained in:
Родитель
ca1497979e
Коммит
766407deac
|
@ -118,8 +118,11 @@ SyncImpl.prototype = {
|
||||||
start() {
|
start() {
|
||||||
if (!this.promise) {
|
if (!this.promise) {
|
||||||
this.promise = Task.spawn(function* () {
|
this.promise = Task.spawn(function* () {
|
||||||
|
try {
|
||||||
yield this._start();
|
yield this._start();
|
||||||
|
} finally {
|
||||||
delete this.promise;
|
delete this.promise;
|
||||||
|
}
|
||||||
}.bind(this));
|
}.bind(this));
|
||||||
}
|
}
|
||||||
return this.promise;
|
return this.promise;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче