From f0fec7352ac25650abe3b72b59e78aebd0a94ebc Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Mon, 3 May 2010 10:53:52 -0700 Subject: [PATCH] Don't emit error twice from http.Client --- lib/http.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/http.js b/lib/http.js index 6b9b1ef..fd00910 100644 --- a/lib/http.js +++ b/lib/http.js @@ -679,10 +679,7 @@ function Client ( ) { }; self.addListener("close", function (e) { - if (e) { - self.emit("error", e); - return; - } + if (e) return; debug("HTTP CLIENT onClose. readyState = " + self.readyState); -- 2.7.4