Skip to content

Commit

Permalink
Merge pull request #17 from bronson/patch-1
Browse files Browse the repository at this point in the history
Call callback on connection error rather than just crashing node.
  • Loading branch information
kurokikaze committed Mar 2, 2012
2 parents 6780b7c + 9eb89ce commit d29ef4e
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 @@ -140,6 +140,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 d29ef4e

Please sign in to comment.