mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-24 05:05:20 -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) {
|
if (this.db !== null) {
|
||||||
try {
|
try {
|
||||||
await this.db.close();
|
await this.db.close();
|
||||||
|
this.db = null;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
Sentry.captureException(error);
|
Sentry.captureException(error);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user