From 8f05facef7f1a6757a229a7ab3d5d7d1621dfeee Mon Sep 17 00:00:00 2001 From: Yasen Atanasov Date: Wed, 29 Oct 2014 11:58:47 +0200 Subject: [PATCH] bugfix: release() method on correct member (pool -> connectionPool) --- lib/pooled-connection.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;