mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-09 11:27:53 +00:00
correct leaseset requests cleanup
This commit is contained in:
parent
c8b935151a
commit
3480824290
@ -87,8 +87,6 @@ namespace client
|
|||||||
Stop ();
|
Stop ();
|
||||||
if (m_Pool)
|
if (m_Pool)
|
||||||
i2p::tunnel::tunnels.DeleteTunnelPool (m_Pool);
|
i2p::tunnel::tunnels.DeleteTunnelPool (m_Pool);
|
||||||
for (auto& it: m_LeaseSetRequests)
|
|
||||||
it.second->Complete (nullptr);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void LeaseSetDestination::Run ()
|
void LeaseSetDestination::Run ()
|
||||||
@ -132,6 +130,13 @@ namespace client
|
|||||||
m_PublishConfirmationTimer.cancel ();
|
m_PublishConfirmationTimer.cancel ();
|
||||||
m_PublishVerificationTimer.cancel ();
|
m_PublishVerificationTimer.cancel ();
|
||||||
|
|
||||||
|
for (auto& it: m_LeaseSetRequests)
|
||||||
|
{
|
||||||
|
it.second->Complete (nullptr);
|
||||||
|
it.second->requestTimeoutTimer.cancel ();
|
||||||
|
}
|
||||||
|
m_LeaseSetRequests.clear ();
|
||||||
|
|
||||||
m_IsRunning = false;
|
m_IsRunning = false;
|
||||||
if (m_Pool)
|
if (m_Pool)
|
||||||
{
|
{
|
||||||
|
@ -392,7 +392,6 @@ namespace garlic
|
|||||||
|
|
||||||
GarlicDestination::~GarlicDestination ()
|
GarlicDestination::~GarlicDestination ()
|
||||||
{
|
{
|
||||||
LogPrint (eLogInfo, "Garlic: destination destroyed");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void GarlicDestination::AddSessionKey (const uint8_t * key, const uint8_t * tag)
|
void GarlicDestination::AddSessionKey (const uint8_t * key, const uint8_t * tag)
|
||||||
|
Loading…
Reference in New Issue
Block a user