mirror of
https://github.com/PurpleI2P/i2pd
synced 2024-11-10 08:00:38 +03:00
cleanup leaseset requests on stop
This commit is contained in:
parent
0e14b54b6d
commit
5e5aefa290
@ -85,9 +85,6 @@ namespace client
|
||||
{
|
||||
if (m_IsRunning)
|
||||
Stop ();
|
||||
for (auto& it: m_LeaseSetRequests)
|
||||
it.second->Complete (nullptr);
|
||||
m_LeaseSetRequests.clear ();
|
||||
if (m_Pool)
|
||||
i2p::tunnel::tunnels.DeleteTunnelPool (m_Pool);
|
||||
}
|
||||
@ -132,6 +129,14 @@ namespace client
|
||||
m_CleanupTimer.cancel ();
|
||||
m_PublishConfirmationTimer.cancel ();
|
||||
m_PublishVerificationTimer.cancel ();
|
||||
|
||||
for (auto& it: m_LeaseSetRequests)
|
||||
{
|
||||
it.second->Complete (nullptr);
|
||||
it.second->requestTimeoutTimer.cancel ();
|
||||
}
|
||||
m_LeaseSetRequests.clear ();
|
||||
|
||||
m_IsRunning = false;
|
||||
if (m_Pool)
|
||||
{
|
||||
|
@ -392,6 +392,10 @@ namespace garlic
|
||||
|
||||
GarlicDestination::~GarlicDestination ()
|
||||
{
|
||||
m_Sessions.clear ();
|
||||
m_DeliveryStatusSessions.clear ();
|
||||
m_Tags.clear ();
|
||||
LogPrint (eLogInfo, "Garlic: destination destoryed");
|
||||
}
|
||||
|
||||
void GarlicDestination::AddSessionKey (const uint8_t * key, const uint8_t * tag)
|
||||
|
Loading…
Reference in New Issue
Block a user