0.2.0
This commit is contained in:
@@ -788,6 +788,18 @@ def main():
|
||||
pass
|
||||
cleanup_all_browsers()
|
||||
break
|
||||
for f, proxy in list(futures_map.items()):
|
||||
if f.done() and not stop_event.is_set() and not restart_event.is_set():
|
||||
try:
|
||||
_ = f.exception()
|
||||
except Exception:
|
||||
pass
|
||||
try:
|
||||
new_future = executor.submit(proxy_loop, proxy, stop_event)
|
||||
del futures_map[f]
|
||||
futures_map[new_future] = proxy
|
||||
except Exception as e:
|
||||
logger.error(f"重启代理线程失败: {proxy} - {e}")
|
||||
time.sleep(0.2)
|
||||
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user