From 163ca1285413fdf77238f887d03bf531042c01cc Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Tue, 29 Sep 2020 10:52:52 +0200 Subject: [PATCH] ignore abort error --- src/matrix/Sync.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/matrix/Sync.js b/src/matrix/Sync.js index 2edc91f2..2db9ad54 100644 --- a/src/matrix/Sync.js +++ b/src/matrix/Sync.js @@ -196,7 +196,9 @@ export class Sync { // avoid corrupting state by only // storing the sync up till the point // the exception occurred - syncTxn.abort(); + try { + syncTxn.abort(); + } catch (abortErr) { /* ignore when we can't abort */ } throw err; } try {