Browse Source

fixed crash at shutdown

pull/118/head
orignal 10 years ago
parent
commit
91e833cdaf
  1. 7
      Destination.cpp

7
Destination.cpp

@ -51,11 +51,16 @@ namespace client @@ -51,11 +51,16 @@ namespace client
ClientDestination::~ClientDestination ()
{
Stop ();
if (m_IsRunning)
Stop ();
for (auto it: m_RemoteLeaseSets)
delete it.second;
if (m_Pool)
i2p::tunnel::tunnels.DeleteTunnelPool (m_Pool);
if (m_StreamingDestination)
delete m_StreamingDestination;
if (m_DatagramDestination)
delete m_DatagramDestination;
}
void ClientDestination::Run ()

Loading…
Cancel
Save