mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
Don't emit error twice from http.Client
This commit is contained in:
1 parent
fd3e1ca3e2
commit
f0fec7352a
1 file changed
+1
-4
+1
-4
@@ -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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user