Do not try to write anything to sqlite after its closed
This commit is contained in:
parent
74ccef02bf
commit
0af3f10997
@ -73,6 +73,8 @@ class MessageStorage {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.isEnabled = false;
|
||||||
|
|
||||||
this.database.close((err) => {
|
this.database.close((err) => {
|
||||||
if (err) {
|
if (err) {
|
||||||
log.error(`Failed to close sqlite database: ${err}`);
|
log.error(`Failed to close sqlite database: ${err}`);
|
||||||
|
Loading…
Reference in New Issue
Block a user