Fix crashlogger wrt AIEngine.

This commit is contained in:
Aleric Inglewood
2013-03-07 13:50:36 +01:00
parent f52e055414
commit dd42577a2a

View File

@@ -57,6 +57,7 @@ BOOL gSent = false;
class AIHTTPTimeoutPolicy;
extern AIHTTPTimeoutPolicy crashLoggerResponder_timeout;
extern void startEngineThread(void);
class LLCrashLoggerResponder : public LLHTTPClient::ResponderWithResult
{
@@ -375,7 +376,7 @@ void LLCrashLogger::updateApplication(const std::string& message)
{
gServicePump->pump();
gServicePump->callback();
AIStateMachine::mainloop();
gMainThreadEngine.mainloop();
}
bool LLCrashLogger::init()
@@ -383,7 +384,11 @@ bool LLCrashLogger::init()
// Initialize curl
AICurlInterface::initCurl();
AIStateMachine::setMaxCount(100); // StateMachineMaxTime
// Initialize state machine engines.
AIEngine::setMaxCount(100); // StateMachineMaxTime
// Start state machine thread.
startEngineThread();
// Start curl thread.
AICurlInterface::startCurlThread(64, // CurlMaxTotalConcurrentConnections