mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 04:53:19 +02:00
Initiate monkey directly from stream. On some devices monkey crashes if we just connect and disconnect.
This commit is contained in:
@@ -46,8 +46,8 @@ devutil.waitForPort = function(adb, serial, port) {
|
||||
}
|
||||
return adb.openTcpAsync(serial, port)
|
||||
.then(function(conn) {
|
||||
conn.end()
|
||||
return port
|
||||
conn.port = port
|
||||
return conn
|
||||
})
|
||||
.catch(closedError, function(err) {
|
||||
return Promise.delay(100)
|
||||
|
||||
Reference in New Issue
Block a user