fixed crash at shutdown

This commit is contained in:
orignal 2014-12-19 12:07:54 -05:00
parent 84e5f30c70
commit 91e833cdaf

View File

@ -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 ()