Yuki Takei 5 سال پیش
والد
کامیت
3170c113e8
1فایلهای تغییر یافته به همراه3 افزوده شده و 2 حذف شده
  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);
+    }
   }
 
   /**