mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-19 08:33:24 +02:00
Ensure that device is saved before probing it.
This commit is contained in:
@@ -43,7 +43,10 @@ module.exports = function(options) {
|
||||
appDealer.send([channel, data])
|
||||
})
|
||||
.on(wire.DevicePokeMessage, function(channel, message) {
|
||||
devDealer.send([message.channel, wireutil.makeProbeMessage()])
|
||||
dbapi.ensureDeviceSaved(message.serial)
|
||||
.then(function() {
|
||||
devDealer.send([message.channel, wireutil.makeProbeMessage()])
|
||||
})
|
||||
})
|
||||
.on(wire.DeviceIdentityMessage, function(channel, message) {
|
||||
dbapi.saveDeviceIdentity(message.serial, message)
|
||||
|
||||
Reference in New Issue
Block a user