Browse Source

correct leaseset requests cleanup

pull/729/head
orignal 8 years ago
parent
commit
3480824290
  1. 9
      Destination.cpp
  2. 1
      Garlic.cpp

9
Destination.cpp

@ -87,8 +87,6 @@ namespace client @@ -87,8 +87,6 @@ namespace client
Stop ();
if (m_Pool)
i2p::tunnel::tunnels.DeleteTunnelPool (m_Pool);
for (auto& it: m_LeaseSetRequests)
it.second->Complete (nullptr);
}
void LeaseSetDestination::Run ()
@ -132,6 +130,13 @@ namespace client @@ -132,6 +130,13 @@ namespace client
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)
{

1
Garlic.cpp

@ -392,7 +392,6 @@ namespace garlic @@ -392,7 +392,6 @@ namespace garlic
GarlicDestination::~GarlicDestination ()
{
LogPrint (eLogInfo, "Garlic: destination destroyed");
}
void GarlicDestination::AddSessionKey (const uint8_t * key, const uint8_t * tag)

Loading…
Cancel
Save