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) {
|
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…
Reference in New Issue