From c4a8cdc7c01b7b8f08c5a78e4caf9332d3bc3365 Mon Sep 17 00:00:00 2001 From: Joe Z Date: Fri, 9 Dec 2011 07:34:00 -0500 Subject: [PATCH] qf --- limestone.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/limestone.js b/limestone.js index ceec0e0..ebd5842 100644 --- a/limestone.js +++ b/limestone.js @@ -116,8 +116,8 @@ exports.SphinxClient = function() { var port = args.length ? args.shift(): Sphinx.port; var persistent = _persistent = args.length ? args.shift() : false; server_conn = tcp.createConnection(port); - server_conn.once('error', function(x){ - console.log('Error: '+x); + server_conn.on('error', function(x){ + console.log('Error: '+x); server_conn.end(); callback(x); });