mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 08:03:30 +02:00
Don't freak out if trying to close a socket that was already closed.
This commit is contained in:
@@ -34,8 +34,11 @@ module.exports = function(options) {
|
||||
log.info('PULL socket bound on', options.endpoints.pull)
|
||||
|
||||
lifecycle.observe(function() {
|
||||
pub.close()
|
||||
dealer.close()
|
||||
pull.close()
|
||||
try {
|
||||
pub.close()
|
||||
dealer.close()
|
||||
pull.close()
|
||||
}
|
||||
catch (err) {}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user