projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fd3e1ca
)
Don't emit error twice from http.Client
author
Ryan Dahl
<ry@tinyclouds.org>
Mon, 3 May 2010 17:53:52 +0000
(10:53 -0700)
committer
Ryan Dahl
<ry@tinyclouds.org>
Mon, 3 May 2010 17:53:52 +0000
(10:53 -0700)
lib/http.js
patch
|
blob
|
history
diff --git
a/lib/http.js
b/lib/http.js
index
6b9b1ef
..
fd00910
100644
(file)
--- a/
lib/http.js
+++ b/
lib/http.js
@@
-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);