1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-12 09:48:20 +08:00

Fix: Stuck in minitouch init

- Fix: Handle AdbError(closed)
This commit is contained in:
LmeSzinc
2022-03-05 09:22:20 +08:00
parent bf87a69c17
commit be8269b555
7 changed files with 68 additions and 9 deletions

View File

@@ -35,6 +35,7 @@ def retry(func):
logger.error(e)
def init():
self.adb_disconnect(self.serial)
self.adb_connect(self.serial)
# When ascreencap is not installed
except AscreencapError as e:
@@ -46,6 +47,7 @@ def retry(func):
except AdbError as e:
if handle_adb_error(e):
def init():
self.adb_disconnect(self.serial)
self.adb_connect(self.serial)
else:
break