mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-22 04:04:16 +00:00
fixed crash at shutdown
This commit is contained in:
parent
84e5f30c70
commit
91e833cdaf
@ -51,11 +51,16 @@ namespace client
|
|||||||
|
|
||||||
ClientDestination::~ClientDestination ()
|
ClientDestination::~ClientDestination ()
|
||||||
{
|
{
|
||||||
Stop ();
|
if (m_IsRunning)
|
||||||
|
Stop ();
|
||||||
for (auto it: m_RemoteLeaseSets)
|
for (auto it: m_RemoteLeaseSets)
|
||||||
delete it.second;
|
delete it.second;
|
||||||
if (m_Pool)
|
if (m_Pool)
|
||||||
i2p::tunnel::tunnels.DeleteTunnelPool (m_Pool);
|
i2p::tunnel::tunnels.DeleteTunnelPool (m_Pool);
|
||||||
|
if (m_StreamingDestination)
|
||||||
|
delete m_StreamingDestination;
|
||||||
|
if (m_DatagramDestination)
|
||||||
|
delete m_DatagramDestination;
|
||||||
}
|
}
|
||||||
|
|
||||||
void ClientDestination::Run ()
|
void ClientDestination::Run ()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user