mirror of
https://github.com/TheFunny/ArisuAutoSweeper
synced 2026-10-13 02:12:14 +00:00
fix: handle adb service reset error and prompt client reconnection
This commit is contained in:
@@ -238,6 +238,11 @@ def handle_adb_error(e):
|
|||||||
# Raised by uiautomator2 when current adb service is killed by another version of adb service.
|
# Raised by uiautomator2 when current adb service is killed by another version of adb service.
|
||||||
logger.error(e)
|
logger.error(e)
|
||||||
return True
|
return True
|
||||||
|
elif text == 'rest':
|
||||||
|
# AdbError(rest)
|
||||||
|
# Response telling adbd service has reset, client should reconnect
|
||||||
|
logger.error(e)
|
||||||
|
return True
|
||||||
else:
|
else:
|
||||||
# AdbError()
|
# AdbError()
|
||||||
logger.exception(e)
|
logger.exception(e)
|
||||||
|
|||||||
Reference in New Issue
Block a user