Don't emit error twice from http.Client

This commit is contained in:
Ryan Dahl committed 2010-05-03 10:53:52 -07:00
1 parent fd3e1ca3e2
commit f0fec7352a
1 file changed
+1 -4
+1 -4
View File
@@ -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);