mirror of
https://github.com/TheFunny/ArisuAutoSweeper
synced 2026-10-11 04:42:10 +00:00
fix: extend nemu_ipc timeout on retries dynamically for slow PCs
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import re
|
||||
import time
|
||||
from functools import wraps
|
||||
|
||||
from adbutils.errors import AdbError
|
||||
@@ -21,7 +22,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