Ensure client.destroy() callback is called when websocket pool used

Fixes #141
This commit is contained in:
Feross Aboukhadijeh 2016-03-31 21:49:18 -07:00
parent 9a48e1c10a
commit 4431ae14ab

View File

@ -137,6 +137,8 @@ WebSocketTracker.prototype.destroy = function (cb) {
} catch (err) {
cb(null)
}
} else {
cb(null)
}
self.socket = null