diff --git a/src/buffer-stream.coffee b/src/buffer-stream.coffee index 064c541..ab71cf7 100644 --- a/src/buffer-stream.coffee +++ b/src/buffer-stream.coffee @@ -64,7 +64,7 @@ class BufferStream extends Stream @emit('drain') if @paused @paused = off @emit('resume') if @size is 'none' - @flush() if not @enabled or @size is 'none' + @flush() if not @enabled or @finished if @finished @emit('end') @emit('close')