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

Commit 60fa2ff8 by Daniel Durante

Merge branch 'master' into milestones/2.0.0

2 parents abe71d6c fbc3189b
Showing with 3 additions and 2 deletions
...@@ -72,8 +72,9 @@ module.exports = (function() { ...@@ -72,8 +72,9 @@ module.exports = (function() {
var emitter = new (require('events').EventEmitter)() var emitter = new (require('events').EventEmitter)()
// in case database is slow to connect, prevent orphaning the client // in case database is slow to connect, prevent orphaning the client
if (this.isConnecting && !this.pooling) { // TODO: We really need some sort of queue/flush/drain mechanism
emitter.emit('success') if (this.isConnecting && !this.pooling && this.client === null) {
emitter.emit('success', null)
return emitter return emitter
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!