Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: lib/io.js

Issue 29360048: Issue 4576 - Fixed a mistake introduced in previous commit (Closed) Base URL: https://hg.adblockplus.org/adblockplus
Patch Set: Created Oct. 28, 2016, 11:04 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld