dtmilano / AndroidViewClient

Android ViewServer and ADB client
Apache License 2.0
1.63k stars 347 forks source link

Script gets stuck on ViewClient(device, serial) #243

Closed RebelKeithy closed 2 years ago

RebelKeithy commented 6 years ago

If the device you are trying to connect to is disconnected between the lines

d, s = ViewClient.connectToDeviceOrExit()
device = ViewClient(d, s)

Then the script will never continue or give an error.

dtmilano commented 6 years ago

Interesting. Do you disconnect the USB cable between those lines?

RebelKeithy commented 6 years ago

Yes, while testing for it that's what I did. I have a Raspberry Pi running tests and a phone, and for some reason the phone seems to randomly reconnect to the Pi sometimes, and that seemed to be causing the tests to get stuck.

dtmilano commented 6 years ago

@RebelKeithy let me know if it's fixed