mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-21 00:05:15 +02:00
Don't freak out if trying to close a socket that was already closed.
This commit is contained in:
@@ -49,6 +49,10 @@ module.exports = function(options) {
|
||||
|
||||
lifecycle.observe(function() {
|
||||
clearTimeout(timer)
|
||||
push.close()
|
||||
|
||||
try {
|
||||
push.close()
|
||||
}
|
||||
catch (err) {}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user