Don't emit error twice from http.Client

pull/22966/head
Ryan Dahl 2010-05-03 10:53:52 -07:00
parent fd3e1ca3e2
commit f0fec7352a
1 changed files with 1 additions and 4 deletions

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);