RustyMarvin / line-by-line

A NodeJS module that helps you reading large text files, line by line, without buffering the files into memory.
MIT License
42 stars 39 forks source link

pause doesn't pause really #2

Open mrchief opened 11 years ago

mrchief commented 11 years ago

I have this code and despite calling close, the event handler gets called again.

lr.on('line', function (line) {
   lr.pause();
   // if some condition met, emit lr.close()
   // else lr.resume()
});