Closed arilotter closed 7 years ago
Thanks for the report, we'll investigate this shortly.
Ah, I see what's going on here. Because the Detector is a writable stream it's automatically ending when the buffer stops writing to it. Calling stream.write()
after stream.end()
will raise an error.
We'd be able to solve this issue by creating a new native detector instance when start is called again, but I don't think that's how it should work.
I'd be more inclined to create pause/resume to get the functionality I think you're looking for. I'll create a PR for this shortly.
To reproduce: