Skip to content

Commit

Permalink
Call callback on connection error rather than just crashing node.
Browse files Browse the repository at this point in the history
  • Loading branch information
bronson committed Nov 3, 2011
1 parent c9ae7ad commit 9eb89ce
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions limestone.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,10 @@ exports.SphinxClient = function() {
response_output = null;

//var promise = new process.Promise();

server_conn.addListener('error', function(e) {
callback(e);
});

server_conn.addListener('connect', function () {

Expand Down

0 comments on commit 9eb89ce

Please sign in to comment.