diff --git a/lib/client.js b/lib/client.js index 32b1d08..a2eb292 100644 --- a/lib/client.js +++ b/lib/client.js @@ -110,7 +110,7 @@ p.connect = function(callback) { if(self.activeQuery) { self.activeQuery.handleReadyForQuery(); } - this.activeQuery = null; + self.activeQuery = null; self.readyForQuery = true; self._pulseQueryQueue(); });