diff --git a/server/core/WebWorker.js b/server/core/WebWorker.js index 2cb8b4c..387edfb 100644 --- a/server/core/WebWorker.js +++ b/server/core/WebWorker.js @@ -395,6 +395,8 @@ class WebWorker { } async restoreBookFile(publicPath) { + this.checkMyState(); + try { const db = this.db; const hash = path.basename(publicPath); @@ -418,6 +420,8 @@ class WebWorker { } async getDownFileName(publicPath) { + this.checkMyState(); + const db = this.db; const hash = path.basename(publicPath); diff --git a/server/index.js b/server/index.js index 51f63f8..aed3b5c 100644 --- a/server/index.js +++ b/server/index.js @@ -23,7 +23,7 @@ function showHelp() { Options: --help Print ${config.name} command line options - --app-dir= Set application working directory, default: "/.${config.name}" + --app-dir= Set application working directory, default: /.${config.name} --lib-dir= Set library directory, default: the same as ${config.name} executable's --inpx= Set INPX collection file, default: the one that found in library dir --recreate Force recreation of the search database on start