mirror of
https://github.com/TheFunny/ArisuAutoSweeper
synced 2026-10-11 13:22:05 +00:00
fix: extend nemu_ipc timeout on retries dynamically for slow PCs
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import os
|
||||
import time
|
||||
from functools import wraps
|
||||
|
||||
import lz4.block
|
||||
@@ -27,7 +28,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