Commit 2b455822 authored by Alan Szlosek's avatar Alan Szlosek

LineBuffer should pass null for end of input

parent 93ba6947
Pipeline #15660885 passed with stage
in 2 minutes and 1 second
......@@ -42,10 +42,13 @@ class LineBuffer extends Transform {
callback();
}
_flush() {
_flush(callback) {
while (this.lineBuffer.length > 0) {
this.push( this.lineBuffer.shift() );
}
// Pass along "end of input"
this.push(null);
setTimeout(callback, 1);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment