Don't freak out if trying to close a socket that was already closed.

This commit is contained in:
Simo Kinnunen
2014-04-21 18:56:40 +09:00
parent c9043dd895
commit 71bf2fd131
4 changed files with 21 additions and 8 deletions

View File

@@ -49,6 +49,10 @@ module.exports = function(options) {
lifecycle.observe(function() {
clearTimeout(timer)
push.close()
try {
push.close()
}
catch (err) {}
})
}