From cf0b4ba4105bb3f0377f5f5e5d1d60d929a143fb Mon Sep 17 00:00:00 2001 From: isaacs Date: Fri, 12 Oct 2012 10:03:03 -0700 Subject: [PATCH] streams2: flow() is not always bound to src --- lib/_stream_readable.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/_stream_readable.js b/lib/_stream_readable.js index 180ab1d55b6..06797c4ea15 100644 --- a/lib/_stream_readable.js +++ b/lib/_stream_readable.js @@ -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; }