Catch InvalidResponseErrors during reboot.
- Similar to USB connections, with Ethernet connections it is
possible adbd restarts the device and closes the connection before
it has time to reply. Catch InvalidResponseError in addition to
ReadFailedError to handle this race.
Bug: 368004900
Change-Id: I15901c1ae43a753a58c4e919c760194bdc0a1328
Reviewed-on: https://chromium-review.googlesource.com/c/infra/luci/python-adb/+/6072007
Auto-Submit: Andrew Lamb <andrewlamb@chromium.org>
Reviewed-by: Haiyang Pan <hypan@google.com>
Commit-Queue: Haiyang Pan <hypan@google.com>
Reviewed-by: Ben Pastene <bpastene@chromium.org>
1 file changed