mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-05-20 14:21:49 +02:00
fixed addressbook crash at shutdown
This commit is contained in:
parent
629b5ff171
commit
12641ab0c0
3 changed files with 34 additions and 10 deletions
|
@ -101,12 +101,11 @@ namespace client
|
|||
m_I2PControlService->Start ();
|
||||
LogPrint("I2PControl started");
|
||||
}
|
||||
m_AddressBook.StartSubscriptions ();
|
||||
m_AddressBook.Start ();
|
||||
}
|
||||
|
||||
void ClientContext::Stop ()
|
||||
{
|
||||
m_AddressBook.StopSubscriptions ();
|
||||
m_HttpProxy->Stop();
|
||||
delete m_HttpProxy;
|
||||
m_HttpProxy = nullptr;
|
||||
|
@ -148,7 +147,7 @@ namespace client
|
|||
m_I2PControlService = nullptr;
|
||||
LogPrint("I2PControl stopped");
|
||||
}
|
||||
|
||||
m_AddressBook.Stop ();
|
||||
for (auto it: m_Destinations)
|
||||
it.second->Stop ();
|
||||
m_Destinations.clear ();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue