From db331a697c44c07c76ac99857bf3515b94b4d834 Mon Sep 17 00:00:00 2001 From: Andrea Baccega Date: Mon, 3 Mar 2014 09:38:22 +0100 Subject: [PATCH] Fix issue #16 Fix issue #16 --- lib/stratum.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/stratum.js b/lib/stratum.js index 5fa0ef1..7572469 100644 --- a/lib/stratum.js +++ b/lib/stratum.js @@ -264,7 +264,7 @@ var StratumServer = exports.Server = function StratumServer(options){ var subscriptionCounter = SubscriptionCounter(); var handleNewClient = function (socket) { - c.setKeepAlive(true); + socket.setKeepAlive(true); var subscriptionId = subscriptionCounter.next(); var client = new StratumClient( { @@ -318,4 +318,4 @@ var StratumServer = exports.Server = function StratumServer(options){ } }; -StratumServer.prototype.__proto__ = events.EventEmitter.prototype; \ No newline at end of file +StratumServer.prototype.__proto__ = events.EventEmitter.prototype;