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

Unified Diff: src/plugin/AdblockPlusClient.cpp

Issue 10973008: Make tabs hang less (Closed)
Patch Set: Created June 13, 2013, 9:03 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 | « src/engine/main.cpp ('k') | src/shared/Communication.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/plugin/AdblockPlusClient.cpp
===================================================================
--- a/src/plugin/AdblockPlusClient.cpp
+++ b/src/plugin/AdblockPlusClient.cpp
@@ -50,9 +50,10 @@
{
SpawnAdblockPlusEngine();
- const int step = 10;
- for (int timeout = 10000; timeout > 0; timeout -= step)
+ const int step = 100;
+ for (int timeout = 5000; timeout > 0; timeout -= step)
{
+ Sleep(step);
try
{
return std::auto_ptr<Communication::Pipe>(new Communication::Pipe(Communication::pipeName, Communication::Pipe::MODE_CONNECT));
@@ -60,7 +61,6 @@
catch (Communication::PipeConnectionError e)
{
}
- Sleep(step);
}
throw std::runtime_error("Unable to open Adblock Plus Engine pipe");
}
« no previous file with comments | « src/engine/main.cpp ('k') | src/shared/Communication.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld