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)