Merge pull request #552 from geon/patch-1

Added missing argument to handleError method call.
This commit is contained in:
Brian C 2014-04-03 08:58:48 -05:00
commit 7dbc4c9845

View File

@ -175,7 +175,7 @@ Client.prototype.connect = function(callback) {
con.once('end', function() {
if(self.activeQuery) {
var disconnectError = new Error('Stream unexpectedly ended during query execution');
self.activeQuery.handleError(disconnectError);
self.activeQuery.handleError(disconnectError, con);
self.activeQuery = null;
}
self.emit('end');