From 134f0188497d6ac7fa3e374f60011ba77bd6c396 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Thu, 5 Nov 2020 21:21:27 +0100 Subject: [PATCH] always have an error when stopping sync --- 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 4e400b4e..31daff88 100644 --- a/src/matrix/Sync.js +++ b/src/matrix/Sync.js @@ -124,10 +124,10 @@ export class Sync { // don't run afterSyncCompleted continue; } + this._error = err; if (err.name !== "AbortError") { console.warn("stopping sync because of error"); console.error(err); - this._error = err; } this._status.set(SyncStatus.Stopped); }