mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-30 13:29:56 +00:00
Fix error
It appears that not all statements can be finalized.
This commit is contained in:
parent
3fca82321e
commit
a33705e348
@ -48,7 +48,9 @@ function SqlTiddlerDatabase(options) {
|
||||
|
||||
SqlTiddlerDatabase.prototype.close = function() {
|
||||
for(const sql in this.statements) {
|
||||
this.statements[sql].finalize();
|
||||
if(this.statements[sql].finalize) {
|
||||
this.statements[sql].finalize();
|
||||
}
|
||||
}
|
||||
this.statements = Object.create(null);
|
||||
this.db.close();
|
||||
|
Loading…
Reference in New Issue
Block a user