mirror of
https://github.com/TheFunny/ArisuAutoSweeper
synced 2026-10-15 14:52:22 +00:00
fix: extend nemu_ipc timeout on retries dynamically for slow PCs
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import json
|
||||
import time
|
||||
from functools import wraps
|
||||
|
||||
import requests
|
||||
@@ -29,7 +30,7 @@ def retry(func):
|
||||
for _ in range(RETRY_TRIES):
|
||||
try:
|
||||
if callable(init):
|
||||
retry_sleep(_)
|
||||
time.sleep(retry_sleep(_))
|
||||
init()
|
||||
return func(self, *args, **kwargs)
|
||||
# Can't handle
|
||||
|
||||
Reference in New Issue
Block a user