mirror of
https://github.com/ARM-software/devlib.git
synced 2025-01-31 02:00:45 +00:00
Merge pull request #61 from credp/android_disconnect
android: don't try to disconnect devices which aren't connected
This commit is contained in:
commit
1cc6ddf140
@ -291,7 +291,7 @@ def adb_disconnect(device):
|
||||
_check_env()
|
||||
if not device:
|
||||
return
|
||||
if ":" in device:
|
||||
if ":" in device and device in adb_list_devices():
|
||||
command = "adb disconnect " + device
|
||||
logger.debug(command)
|
||||
retval = subprocess.call(command, stdout=open(os.devnull, 'wb'), shell=True)
|
||||
|
Loading…
x
Reference in New Issue
Block a user