Yuki Takei před 5 roky
rodič
revize
3170c113e8
1 změnil soubory, kde provedl 3 přidání a 2 odebrání
  1. 3 2
      src/server/service/config-manager.js

+ 3 - 2
src/server/service/config-manager.js

@@ -196,10 +196,11 @@ class ConfigManager {
     const updatedAt = new Date();
 
     await this.loadConfigs();
-    this.reloadConfigKeys();
 
     // publish updated date after reloading
-    this.publishUpdateMessage(updatedAt);
+    if (this.configPubsub != null) {
+      this.publishUpdateMessage(updatedAt);
+    }
   }
 
   /**