mirror of
https://github.com/lifegpc/eh-downloader.git
synced 2026-07-08 01:31:00 +08:00
Fix database closed multiple times.
utt part support Ctrl + C
This commit is contained in:
@@ -93,7 +93,10 @@ export class TaskManager {
|
||||
}
|
||||
}
|
||||
close() {
|
||||
if (this.#closed) return;
|
||||
if (this.#closed) {
|
||||
console.trace("Manager closed multiple times.");
|
||||
return;
|
||||
}
|
||||
this.#closed = true;
|
||||
this.db.close();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user