Browse Source

Don't emit error twice from http.Client

v0.7.4-release
Ryan Dahl 15 years ago
parent
commit
f0fec7352a
  1. 5
      lib/http.js

5
lib/http.js

@ -679,10 +679,7 @@ function Client ( ) {
}; };
self.addListener("close", function (e) { self.addListener("close", function (e) {
if (e) { if (e) return;
self.emit("error", e);
return;
}
debug("HTTP CLIENT onClose. readyState = " + self.readyState); debug("HTTP CLIENT onClose. readyState = " + self.readyState);

Loading…
Cancel
Save