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