mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-22 22:05:21 +02:00
Make graceful shutdown more graceful by actually waiting for sockets (and others) to close. Ongoing effort.
This commit is contained in:
@@ -46,4 +46,9 @@ module.exports = function(options) {
|
||||
|
||||
timer = setInterval(reap, options.reapInterval)
|
||||
log.info('Reaping devices with no heartbeat')
|
||||
|
||||
lifecycle.observe(function() {
|
||||
clearTimeout(timer)
|
||||
push.close()
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user