1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-04 02:09:32 +02:00

Initiate monkey directly from stream. On some devices monkey crashes if we just connect and disconnect.

This commit is contained in:
Simo Kinnunen 2014-01-30 10:49:54 +09:00
parent 01070bcf6c
commit 8db22952bf
2 changed files with 7 additions and 6 deletions

View file

@ -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)