mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
more debug messages at destinations stop
Signed-off-by: r4sas <r4sas@i2pmail.org>
This commit is contained in:
parent
a2726cf206
commit
fdf38f45d9
2 changed files with 20 additions and 5 deletions
|
@ -186,22 +186,30 @@ namespace client
|
|||
LogPrint(eLogInfo, "Clients: Stopping AddressBook");
|
||||
m_AddressBook.Stop ();
|
||||
|
||||
LogPrint(eLogInfo, "Clients: Stopping UDP Tunnels");
|
||||
{
|
||||
std::lock_guard<std::mutex> lock(m_ForwardsMutex);
|
||||
m_ServerForwards.clear();
|
||||
m_ClientForwards.clear();
|
||||
}
|
||||
|
||||
LogPrint(eLogInfo, "Clients: Stopping UDP Tunnels timers");
|
||||
if (m_CleanupUDPTimer)
|
||||
{
|
||||
m_CleanupUDPTimer->cancel ();
|
||||
m_CleanupUDPTimer = nullptr;
|
||||
}
|
||||
|
||||
for (auto& it: m_Destinations)
|
||||
it.second->Stop ();
|
||||
m_Destinations.clear ();
|
||||
{
|
||||
LogPrint(eLogInfo, "Clients: Stopping Destinations");
|
||||
std::lock_guard<std::mutex> lock(m_DestinationsMutex);
|
||||
for (auto& it: m_Destinations)
|
||||
it.second->Stop ();
|
||||
LogPrint(eLogInfo, "Clients: Stopping Destinations - Clear");
|
||||
m_Destinations.clear ();
|
||||
}
|
||||
|
||||
LogPrint(eLogInfo, "Clients: Stopping SharedLocalDestination");
|
||||
m_SharedLocalDestination->Release ();
|
||||
m_SharedLocalDestination = nullptr;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue