mirror of https://github.com/nodejs/node.git
streams2: flow() is not always bound to src
parent
acfb0ef908
commit
cf0b4ba410
|
@ -289,8 +289,8 @@ function flow(src, pipeOpts) {
|
|||
state.flowing = false;
|
||||
|
||||
// if there were data event listeners added, then switch to old mode.
|
||||
if (this.listeners('data').length)
|
||||
emitDataEvents(this);
|
||||
if (src.listeners('data').length)
|
||||
emitDataEvents(src);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue