mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-22 03:57:47 -04:00
(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:
parent
8807590ce7
commit
c4de67e29b
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user