fix(sqlite): reset before destroying

should fix client not closing properly
This commit is contained in:
alina 🌸 2023-11-27 14:55:27 +03:00
parent 945872e2fd
commit ec0865c746
Signed by: teidesu
SSH key fingerprint: SHA256:uNeCpw6aTSU4aIObXLvHfLkDa82HWH9EiOj9AXOIRpI

View file

@ -503,6 +503,7 @@ export class SqliteStorage implements ITelegramStorage /*, IStateStorage*/ {
}
destroy(): void {
this.reset()
this._db.close()
clearInterval(this._vacuumTimeout)
}