This commit is contained in:
2025-11-30 09:27:15 +08:00
parent 5893efb3d5
commit ab5d4664a3

View File

@@ -647,7 +647,7 @@ def proxy_loop(proxy: str, stop_event: threading.Event) -> None:
while not stop_event.is_set(): while not stop_event.is_set():
try: try:
if is_forbidden_time(): if is_forbidden_time():
if stop_event.wait(timeout=300): if stop_event.wait(timeout=60):
break break
cleanup_all_browsers() cleanup_all_browsers()
secs = seconds_until(20, 0) secs = seconds_until(20, 0)
@@ -792,7 +792,7 @@ def main():
restart_event = threading.Event() restart_event = threading.Event()
if is_forbidden_time(): if is_forbidden_time():
if stop_event.wait(timeout=300): if stop_event.wait(timeout=60):
continue continue
cleanup_all_browsers() cleanup_all_browsers()
logger.info("处于禁跑时段,等待至禁跑结束") logger.info("处于禁跑时段,等待至禁跑结束")