From 683765b368d964cb883d4b8f808ec894a5ac2b97 Mon Sep 17 00:00:00 2001 From: Dominik Henneke Date: Wed, 25 Oct 2023 09:29:45 +0200 Subject: [PATCH] Don't emit a closed event if the indexeddb is closed by Element Signed-off-by: Dominik Henneke --- src/store/indexeddb-local-backend.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/store/indexeddb-local-backend.ts b/src/store/indexeddb-local-backend.ts index 96cd1f87d04..0ade8f1c4e4 100644 --- a/src/store/indexeddb-local-backend.ts +++ b/src/store/indexeddb-local-backend.ts @@ -191,7 +191,6 @@ export class LocalIndexedDBStoreBackend implements IIndexedDBBackend { this.db?.close(); // this does not call onclose this.disconnected = true; this.db = undefined; - onClose?.(); }; this.db.onclose = (): void => { this.disconnected = true;