mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 04:53:19 +02:00
Modify APIs from Aysnc -> Sync using timeout
This commit is contained in:
@@ -152,7 +152,7 @@ dbapi.saveDeviceInitialState = function(serial, device) {
|
||||
, ready: false
|
||||
, reverseForwards: []
|
||||
, remoteConnect: false
|
||||
, remoteDebugUrl: null
|
||||
, remoteConnectUrl: null
|
||||
}
|
||||
return db.run(r.table('devices').get(serial).update(data))
|
||||
.then(function(stats) {
|
||||
@@ -167,14 +167,14 @@ dbapi.saveDeviceInitialState = function(serial, device) {
|
||||
|
||||
dbapi.setDeviceConnectUrl = function(serial, url) {
|
||||
return db.run(r.table('devices').get(serial).update({
|
||||
remoteDebugUrl: url
|
||||
remoteConnectUrl: url
|
||||
, remoteConnect: true
|
||||
}))
|
||||
}
|
||||
|
||||
dbapi.unsetDeviceConnectUrl = function(serial, url) {
|
||||
return db.run(r.table('devices').get(serial).update({
|
||||
remoteDebugUrl: null
|
||||
remoteConnectUrl: null
|
||||
, remoteConnect: false
|
||||
}))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user