(api) set db to null when closing it, hopefully fxing some database handle is closed errors or providing a better stack for others

This commit is contained in:
Valentyne Stigloher 2025-03-16 15:16:27 +01:00
parent 8807590ce7
commit c4de67e29b

View File

@ -106,6 +106,7 @@ export class LazyDatabase implements Database {
if (this.db !== null) {
try {
await this.db.close();
this.db = null;
} catch (error) {
Sentry.captureException(error);
}