soldair / node-fs-backwards-stream

stream a file backwards

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Destroy does not stop the stream

psznm opened this issue · comments

commented

After calling .destroy() on the stream, the stream should close. However fs-backwards-stream keeps reading. This can result in hanging script when reading large file and destroying the stream.

Workaround is to manually emit end event. After emitting end event, fs-backwards-stream stops reading.