Skip to content

Commit

Permalink
another feature request in issue #4 unvealed a bug with flushing on e…
Browse files Browse the repository at this point in the history
…nd in paused state
  • Loading branch information
dodo committed Sep 21, 2011
1 parent c7360ea commit 37d9231
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/buffer-stream.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 37d9231

Please sign in to comment.