From 61ddce87faf212e875dc238766fe7ef02ce37a33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Geisendo=CC=88rfer?= Date: Wed, 19 Oct 2011 14:48:01 +0200 Subject: [PATCH] Fix bad reference to 'this' --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index a1dd40fe97..2307c79eae 100644 --- a/index.js +++ b/index.js @@ -59,7 +59,7 @@ function RedisClient(stream, options) { }); this.stream.on("error", function (msg) { - if (this.closing) { + if (self.closing) { return; }