mirror of https://github.com/nodejs/node.git
Don't emit error twice from http.Client
parent
fd3e1ca3e2
commit
f0fec7352a
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue