[Pkg-mozext-commits] [adblock-plus] 50/98: Issue 4576 - Fixed deep recursion when reading patterns.ini with please_kill_startup_performance setting set
David Prévot
taffit at moszumanska.debian.org
Tue Oct 24 01:30:18 UTC 2017
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository adblock-plus.
commit 79be4739f36dec3eb35ae94e1210bcb0f924f559
Author: Wladimir Palant <trev at adblockplus.org>
Date: Fri Oct 28 09:36:29 2016 +0200
Issue 4576 - Fixed deep recursion when reading patterns.ini with please_kill_startup_performance setting set
---
lib/io.js | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/lib/io.js b/lib/io.js
index fa9c022..71492a6 100644
--- a/lib/io.js
+++ b/lib/io.js
@@ -94,7 +94,11 @@ let IO = exports.IO =
lines.pop();
lines[0] = oldBuffer + lines[0];
for (let i = 0; i < lines.length; i++)
- yield listener.process(lines[i]);
+ {
+ let promise = listener.process(lines[i]);
+ if (promise)
+ yield listener.process(lines[i]);
+ }
}
finally
{
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/adblock-plus.git
More information about the Pkg-mozext-commits
mailing list