diff --git a/lib/client.js b/lib/client.js index 78ce8cbf..3af94fe0 100644 --- a/lib/client.js +++ b/lib/client.js @@ -87,7 +87,7 @@ p.connect = function() { } this.activeQuery = null; self.readyForQuery = true; - self.pulseQueryQueue(); + self._pulseQueryQueue(); }); con.on('error', function(error) { @@ -104,7 +104,7 @@ p.connect = function() { }); }; -p.pulseQueryQueue = function() { +p._pulseQueryQueue = function() { if(this.readyForQuery===true) { this.activeQuery = this.queryQueue.shift(); if(this.activeQuery) { @@ -134,7 +134,7 @@ p.query = function(config, values, callback) { var query = new Query(config); this.queryQueue.push(query); - this.pulseQueryQueue(); + this._pulseQueryQueue(); return query; };