From 585a8afad7956f57e1aff8dcfcbbf025c6ffab22 Mon Sep 17 00:00:00 2001 From: Roman Shtylman Date: Mon, 11 Feb 2013 14:19:05 -0500 Subject: [PATCH] fix undefined variable fixes #8 --- client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client.js b/client.js index 8f8a5bc..bb2f25b 100644 --- a/client.js +++ b/client.js @@ -59,7 +59,7 @@ var connect = function(opt) { remote.once('error', function(err) { if (err.code !== 'ECONNREFUSED') { - local.emit('error', err); + remote.emit('error', err); } // retrying connection to local server