Browse Source

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

yEs1do 1 năm trước cách đây
mục cha
commit
dff82be17e
1 tập tin đã thay đổi với 1 bổ sung và 1 xóa
  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 +