Index: adb/contrib/adb_commands_safe.py |
diff --git a/adb/contrib/adb_commands_safe.py b/adb/contrib/adb_commands_safe.py |
index e7dcd5014acadb4111e5f76b001949e308dbeadb..ebc606fb4e9de015bd0c7cb6873bb0bdfaeb783c 100644 |
--- a/adb/contrib/adb_commands_safe.py |
+++ b/adb/contrib/adb_commands_safe.py |
@@ -773,12 +773,16 @@ class AdbCommandsSafe(object): |
# Do not kill adb, it just means the USB host is likely resetting and |
# the device is temporarily unavailable. We can't use |
# handle.serial_number since this communicates with the device. |
+ # Might take a while for the device to come back. Exit early. |
+ break |
except common.usb1.USBErrorNotFound as e: |
_LOG.warning( |
'%s._OpenHandle(): USBErrorNotFound: %s', self.port_path, e) |
# Do not kill adb, it just means the USB host is likely resetting (?) |
# and the device is temporarily unavailable. We can't use |
# handle.serial_number since this communicates with the device. |
+ # Might take a while for the device to come back. Exit early. |
+ break |
except common.usb1.USBErrorBusy as e: |
_LOG.warning('%s._OpenHandle(): USBErrorBusy: %s', self.port_path, e) |
KillADB() |