Skip to content

Commit

Permalink
fixed crash at shutdown
Browse files Browse the repository at this point in the history
  • Loading branch information
orignal committed Dec 19, 2014
1 parent 84e5f30 commit 91e833c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Destination.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 ()
Expand Down

0 comments on commit 91e833c

Please sign in to comment.