1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-12 00:28: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

@@ -65,8 +65,13 @@ def handle_adb_error(e):
# AdbTimeout(adb read timeout)
logger.error(e)
return True
else:
elif 'closed' in text:
# AdbError(closed)
# Usually after AdbTimeout(adb read timeout)
# Disconnect and re-connect should fix this.
logger.error(e)
return True
else:
# AdbError(device offline)
# AdbError()
logger.exception(e)