query errors passed to a query callback function are considered handled

This commit is contained in:
Brian Carlson 2010-12-16 23:50:36 -06:00
parent 9281ff9860
commit 55f84924f2

View File

@ -74,8 +74,9 @@ p.submit = function(connection) {
if(self.callback) {
self.callback(err);
connection.removeListener('commandComplete', onCommandComplete);
}
} else {
self.emit('error', err);
}
self.emit('end');
};