Skip to content

Commit cf0b4ba

Browse files
committed
streams2: flow() is not always bound to src
1 parent acfb0ef commit cf0b4ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/_stream_readable.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,8 +289,8 @@ function flow(src, pipeOpts) {
289289
state.flowing = false;
290290

291291
// if there were data event listeners added, then switch to old mode.
292-
if (this.listeners('data').length)
293-
emitDataEvents(this);
292+
if (src.listeners('data').length)
293+
emitDataEvents(src);
294294
return;
295295
}
296296

0 commit comments

Comments
 (0)