File tree 2 files changed +3
-2
lines changed
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ you spot any mistakes.
6
6
7
7
## HEAD
8
8
9
+ * Destroy/end connections removed from the pool on error
9
10
* Delay implied connect until after ` .query ` argument validation
10
11
* Do not remove connections with non-fatal errors from the pool
11
12
* Error early if ` callback ` argument to ` .query ` is not a function #1060
Original file line number Diff line number Diff line change @@ -54,13 +54,13 @@ PoolConnection.prototype.destroy = function () {
54
54
return Connection . prototype . destroy . apply ( this , arguments ) ;
55
55
} ;
56
56
57
- PoolConnection . prototype . _removeFromPool = function ( connection ) {
57
+ PoolConnection . prototype . _removeFromPool = function _removeFromPool ( ) {
58
58
if ( ! this . _pool || this . _pool . _closed ) {
59
59
return ;
60
60
}
61
61
62
62
var pool = this . _pool ;
63
63
this . _pool = null ;
64
64
65
- pool . _removeConnection ( this ) ;
65
+ pool . _purgeConnection ( this ) ;
66
66
} ;
You can’t perform that action at this time.
0 commit comments