mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-21 21:35:16 +02:00
Don't freak out if trying to close a socket that was already closed.
This commit is contained in:
@@ -365,8 +365,11 @@ module.exports = function(options) {
|
||||
lifecycle.observe(function() {
|
||||
clearTimeout(totalsTimer)
|
||||
|
||||
push.close()
|
||||
sub.close()
|
||||
try {
|
||||
push.close()
|
||||
sub.close()
|
||||
}
|
||||
catch (err) {}
|
||||
|
||||
return Promise.all(Object.keys(workers).map(function(serial) {
|
||||
return workers[serial].cancel()
|
||||
|
||||
Reference in New Issue
Block a user