From 2d817e9c984af1a5b5df0eca758f8b2a9c6dcf72 Mon Sep 17 00:00:00 2001 From: Book Pauk Date: Sat, 8 Oct 2022 01:31:06 +0700 Subject: [PATCH] =?UTF-8?q?=D0=9C=D0=B5=D0=BB=D0=BA=D0=B8=D0=B5=20=D0=BF?= =?UTF-8?q?=D0=BE=D0=BF=D1=80=D0=B0=D0=B2=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/core/WebWorker.js | 4 ++++ server/index.js | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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