mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1066077 - [mozdevice] Raise an exception when there is no device attached. r=wlachance
This commit is contained in:
parent
a730ef944e
commit
fbecf86824
@ -637,7 +637,7 @@ class DeviceManagerADB(DeviceManager):
|
||||
raise DMError("bad status for device %s: %s" % (self._deviceSerial, deviceStatus))
|
||||
|
||||
# Check to see if we can connect to device and run a simple command
|
||||
if self._checkCmd(["shell", "echo"]) is None:
|
||||
if not self._checkCmd(["shell", "echo"]) == 0:
|
||||
raise DMError("unable to connect to device")
|
||||
|
||||
def _checkForRoot(self):
|
||||
|
Loading…
Reference in New Issue
Block a user