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:
f8bb031
)
lint
author
isaacs
<i@izs.me>
Thu, 6 Dec 2012 18:21:22 +0000
(10:21 -0800)
committer
isaacs
<i@izs.me>
Fri, 14 Dec 2012 18:52:28 +0000
(10:52 -0800)
lib/_stream_readable.js
patch
|
blob
|
history
diff --git
a/lib/_stream_readable.js
b/lib/_stream_readable.js
index
54ceaa1
..
f7790c6
100644
(file)
--- a/
lib/_stream_readable.js
+++ b/
lib/_stream_readable.js
@@
-303,7
+303,7
@@
Readable.prototype.pipe = function(dest, pipeOpts) {
state.pipes = dest;
break;
case 1:
- state.pipes = [
state.pipes, dest
];
+ state.pipes = [
state.pipes, dest
];
break;
default:
state.pipes.push(dest);
@@
-390,7
+390,7
@@
function pipeOnDrain(src) {
return function() {
var dest = this;
var state = src._readableState;
- state.awaitDrain
--;
+ state.awaitDrain--;
if (state.awaitDrain === 0)
flow(src);
};