mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2024-11-16 00:12:43 +00:00
complete session if presented
This commit is contained in:
parent
9eba7923a7
commit
0ed9dc4e93
@ -291,6 +291,7 @@ namespace transport
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
LogPrint (eLogError, "No NTCP and SSU addresses available");
|
LogPrint (eLogError, "No NTCP and SSU addresses available");
|
||||||
|
if (peer.session) peer.session->Done ();
|
||||||
m_Peers.erase (ident);
|
m_Peers.erase (ident);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -60,7 +60,6 @@ namespace transport
|
|||||||
|
|
||||||
~Peer ()
|
~Peer ()
|
||||||
{
|
{
|
||||||
//if (session) session->Done ();
|
|
||||||
for (auto it :delayedMessages)
|
for (auto it :delayedMessages)
|
||||||
i2p::DeleteI2NPMessage (it);
|
i2p::DeleteI2NPMessage (it);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user