Permalink
Browse files

Changing Client.prototype._ping to use this instead of self. Self was…

…n't defined in the context of that prototype method, causing the ping query to fail and throw an exception.
  • Loading branch information...
1 parent a38033d commit d6b2f30cc6ac1b8be4e5bbfd3d5dbda7275da9dc @gerred gerred committed Oct 10, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Client.js
View
@@ -256,7 +256,7 @@ Client.prototype.prepare = function(query) {
}
Client.prototype._ping = function() {
- self.query('DO 0', true, true);
+ this.query('DO 0', true, true);
this._pinger = setTimeout(this._ping, this.pingInterval);
};

0 comments on commit d6b2f30

Please sign in to comment.