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"); |
} |