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

Commit 67848b3d by Sascha Depold

null the client once end is done

1 parent a4ce1da7
Showing with 2 additions and 2 deletions
......@@ -38,8 +38,8 @@ ConnectorManager.prototype.query = function(sql, callee, options) {
}
ConnectorManager.prototype.disconnect = function() {
this.client.end(function() {})
this.client = null
var self = this
this.client.end(function() { self.client = null })
}
ConnectorManager.prototype.reconnect = function() {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!