mirror of
https://github.com/openstf/stf
synced 2025-10-04 18:29:17 +02:00
Reset owner and reverse forwards when a dead worker restarts. This should prevent ghost owners from staying in the device list.
This commit is contained in:
parent
fe7785f003
commit
4a4b0f26d1
5 changed files with 24 additions and 9 deletions
|
@ -83,13 +83,15 @@ module.exports = function(options) {
|
|||
appDealer.send([channel, data])
|
||||
})
|
||||
// Worker initialized
|
||||
.on(wire.DevicePokeMessage, function(channel, message) {
|
||||
dbapi.setDeviceChannel(message.serial, message.channel)
|
||||
.on(wire.DeviceReadyMessage, function(channel, message, data) {
|
||||
dbapi.setDeviceReady(message.serial, message.channel)
|
||||
.then(function() {
|
||||
devDealer.send([
|
||||
message.channel
|
||||
, wireutil.envelope(new wire.ProbeMessage())
|
||||
])
|
||||
|
||||
appDealer.send([channel, data])
|
||||
})
|
||||
})
|
||||
// Worker messages
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue