Merge pull request #2222 from thelounge/xpaw/sqlite-close
Do not try to write anything to sqlite after its closed
This commit is contained in:
commit
a7e928ed4f
@ -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