init addressbook first

This commit is contained in:
Jeff Becker 2016-08-21 21:40:21 -04:00
parent da82b14307
commit ff6d66b96e
No known key found for this signature in database
GPG key ID: AB950234D6EA286B

View file

@ -40,6 +40,9 @@ namespace client
m_SharedLocalDestination->Start (); m_SharedLocalDestination->Start ();
} }
m_AddressBook.Start ();
if ( m_ServiceThread == nullptr ) { if ( m_ServiceThread == nullptr ) {
m_ServiceThread = new std::thread([&] () { m_ServiceThread = new std::thread([&] () {
LogPrint(eLogInfo, "ClientContext: starting service"); LogPrint(eLogInfo, "ClientContext: starting service");
@ -48,8 +51,6 @@ namespace client
}); });
ScheduleCleanupUDP(); ScheduleCleanupUDP();
} }
m_AddressBook.Start ();
std::shared_ptr<ClientDestination> localDestination; std::shared_ptr<ClientDestination> localDestination;
bool httproxy; i2p::config::GetOption("httpproxy.enabled", httproxy); bool httproxy; i2p::config::GetOption("httpproxy.enabled", httproxy);