Index: lib/io.js |
=================================================================== |
--- a/lib/io.js |
+++ b/lib/io.js |
@@ -92,17 +92,17 @@ let IO = exports.IO = |
data = data.substr(0, index + 1); |
let lines = data.split(/[\r\n]+/); |
lines.pop(); |
lines[0] = oldBuffer + lines[0]; |
for (let i = 0; i < lines.length; i++) |
{ |
let promise = listener.process(lines[i]); |
if (promise) |
- yield listener.process(lines[i]); |
+ yield promise; |
} |
} |
finally |
{ |
processing = false; |
data = buffer; |
buffer = ""; |
yield* onProgress(data); |