1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-05 19:42:01 +02:00

Properly delete retired workers from worker list, or graceful exit gets confused.

This commit is contained in:
Simo Kinnunen 2014-02-05 23:13:31 +09:00
parent 753d839112
commit ad0651a3b6

View file

@ -212,7 +212,8 @@ module.exports = function(options) {
return worker = workers[device.id] = spawn()
.then(function() {
log.info('Device worker "%s" has retired', device.id)
worker = workers[device.id] = null
delete workers[device.id]
worker = null
})
.catch(procutil.ExitError, function(err) {
log.error(