mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-19 10:53:29 +02:00
When receiving an introduction message, silently drop any previous value in the reaper. Fixes a bug where restarting a provider would not bring the devices online due to it starting within the heartbeat ttl, leading the reaper to believe it has been connected all along.
This commit is contained in:
@@ -92,6 +92,7 @@ module.exports = function(options) {
|
||||
function listenToChanges() {
|
||||
sub.on('message', wirerouter()
|
||||
.on(wire.DeviceIntroductionMessage, function(channel, message) {
|
||||
ttlset.drop(message.serial, TtlSet.SILENT)
|
||||
ttlset.bump(message.serial, Date.now())
|
||||
})
|
||||
.on(wire.DeviceHeartbeatMessage, function(channel, message) {
|
||||
|
||||
Reference in New Issue
Block a user