fix(sqlite): reset before destroying
should fix client not closing properly
This commit is contained in:
parent
945872e2fd
commit
ec0865c746
1 changed files with 1 additions and 0 deletions
|
@ -503,6 +503,7 @@ export class SqliteStorage implements ITelegramStorage /*, IStateStorage*/ {
|
|||
}
|
||||
|
||||
destroy(): void {
|
||||
this.reset()
|
||||
this._db.close()
|
||||
clearInterval(this._vacuumTimeout)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue