From 81d884f899eba9700188d898190af9b60d787050 Mon Sep 17 00:00:00 2001 From: schmop Date: Thu, 19 May 2022 13:56:25 +0200 Subject: [PATCH] Catch promise errors in degradable (fixes #2384) (#2385) Co-authored-by: Lars Richard --- src/store/indexeddb.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/store/indexeddb.ts b/src/store/indexeddb.ts index 699aa0b1b27..09b54bf29cb 100644 --- a/src/store/indexeddb.ts +++ b/src/store/indexeddb.ts @@ -297,7 +297,7 @@ export class IndexedDBStore extends MemoryStore { return async (...args) => { try { - return func.call(this, ...args); + return await func.call(this, ...args); } catch (e) { logger.error("IndexedDBStore failure, degrading to MemoryStore", e); this.emitter.emit("degraded", e);