diff --git a/lib/pooled-connection.js b/lib/pooled-connection.js index 37c84fd..1b02343 100644 --- a/lib/pooled-connection.js +++ b/lib/pooled-connection.js @@ -17,7 +17,7 @@ function PooledConnection(connectionPool, config) { PooledConnection.prototype = Object.create(Connection.prototype); PooledConnection.prototype.release = function () { - this.pool.release(this); + this.connectionPool.release(this); }; module.exports = PooledConnection;