浏览代码

Мелкие поправки

Book Pauk 2 年之前
父节点
当前提交
2d817e9c98
共有 2 个文件被更改,包括 5 次插入1 次删除
  1. 4 0
      server/core/WebWorker.js
  2. 1 1
      server/index.js

+ 4 - 0
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);
 

+ 1 - 1
server/index.js

@@ -23,7 +23,7 @@ function showHelp() {
 
 Options:
   --help              Print ${config.name} command line options
-  --app-dir=<dirpath> Set application working directory, default: "<execDir>/.${config.name}"
+  --app-dir=<dirpath> Set application working directory, default: <execDir>/.${config.name}
   --lib-dir=<dirpath> Set library directory, default: the same as ${config.name} executable's
   --inpx=<filepath>   Set INPX collection file, default: the one that found in library dir
   --recreate          Force recreation of the search database on start