mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-19 04:53:28 +02:00
Unify socket closers. Don't put them all in one try-catch or some might remain.
This commit is contained in:
@@ -72,6 +72,11 @@ module.exports = function(options) {
|
||||
logger.LevelLabel[options.priority])
|
||||
|
||||
lifecycle.observe(function() {
|
||||
sub.close()
|
||||
try {
|
||||
sub.close()
|
||||
}
|
||||
catch (err) {
|
||||
// No-op
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user