瀏覽代碼

使自定义间隔的固定运行时间也可以使用随机延迟

yEs1do 1 年之前
父節點
當前提交
dff82be17e
共有 1 個文件被更改,包括 1 次插入 和 1 次删除
  1. 1 1
      module/config/config.py

+ 1 - 1
module/config/config.py

@@ -339,7 +339,7 @@ class Config(ConfigState, ConfigManual, ConfigWatcher, ConfigMenu):
         run = min(run).replace(microsecond=0)
         next_run = run
 
-        if server and hasattr(scheduler, 'server_update') and target is None:
+        if server and hasattr(scheduler, 'server_update'):
             # 加入随机延迟时间
             float_seconds = (scheduler.float_time.hour * 3600 +
                              scheduler.float_time.minute * 60 +