We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fc44254 commit 6633202Copy full SHA for 6633202
lib/PoolConnection.js
@@ -5,6 +5,8 @@ var Events = require('events');
5
module.exports = PoolConnection;
6
inherits(PoolConnection, Connection);
7
8
+function _noop() {}
9
+
10
function PoolConnection(pool, options) {
11
Connection.call(this, options);
12
this._pool = pool;
@@ -34,7 +36,7 @@ PoolConnection.prototype.release = function release() {
34
36
35
37
if (this._pool.config.idleConnectionTimeout) {
38
this._idleTimeout = setTimeout(
- this.destroy.bind(this),
39
+ this._realEnd.bind(this, _noop),
40
this._pool.config.idleConnectionTimeout
41
);
42
}
0 commit comments