Destroy does not stop the stream
psznm opened this issue · comments
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.