不要怂,就是干,撸起袖子干!

Commit 5b0e7fab by Meg Sharkey

fix for connection leak

1 parent e170cd49
Showing with 4 additions and 1 deletions
...@@ -43,7 +43,10 @@ module.exports = (function() { ...@@ -43,7 +43,10 @@ module.exports = (function() {
ConnectorManager.prototype.disconnect = function() { ConnectorManager.prototype.disconnect = function() {
var self = this var self = this
this.client.end(function() { self.client = null }) this.client.end(function() {
self.client.destroy()
self.client = null
})
} }
// private // private
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!