From 150f06b9bf88b8f4e9120c3707500adbc1ca8e25 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Tue, 22 Sep 2020 16:39:04 +0200 Subject: [PATCH] also move to Stopped for aborts --- src/matrix/Sync.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/matrix/Sync.js b/src/matrix/Sync.js index dc169deb..515c096d 100644 --- a/src/matrix/Sync.js +++ b/src/matrix/Sync.js @@ -120,11 +120,11 @@ export class Sync { this._status.set(SyncStatus.Syncing); } } catch (err) { + this._status.set(SyncStatus.Stopped); if (!(err instanceof AbortError)) { console.warn("stopping sync because of error"); console.error(err); this._error = err; - this._status.set(SyncStatus.Stopped); } } if (this._status.get() !== SyncStatus.Stopped) {