diff --git a/lib/units/provider/index.js b/lib/units/provider/index.js index c577fa57..3f43115e 100644 --- a/lib/units/provider/index.js +++ b/lib/units/provider/index.js @@ -260,6 +260,14 @@ module.exports = function(options) { log.info('Device worker "%s" has retired', device.id) delete workers[device.id] worker = null + + // Tell others the device is gone + push.send([ + wireutil.global + , wireutil.envelope(new wire.DeviceAbsentMessage( + device.id + )) + ]) }) .catch(procutil.ExitError, function(err) { if (!willStop) {