diff --git a/ext/js/dictionary/dictionary-database.js b/ext/js/dictionary/dictionary-database.js index b899c1be3..2212279e9 100644 --- a/ext/js/dictionary/dictionary-database.js +++ b/ext/js/dictionary/dictionary-database.js @@ -200,6 +200,10 @@ export class DictionaryDatabase { if (this._db.isOpen()) { this._db.close(); } + if (this._worker !== null) { + this._worker.terminate(); + this._worker = null; + } let result = false; try { await Database.deleteDatabase(this._dbName);