mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
check if connection to peer exists already
This commit is contained in:
parent
0518b08ca6
commit
8305fd5f82
2 changed files with 6 additions and 1 deletions
|
@ -428,7 +428,7 @@ namespace transport
|
|||
{
|
||||
auto ident = session->GetRemoteIdentity ().GetIdentHash ();
|
||||
auto it = m_Peers.find (ident);
|
||||
if (it != m_Peers.end () && it->second.session == session)
|
||||
if (it != m_Peers.end () && (!it->second.session || it->second.session == session))
|
||||
{
|
||||
if (it->second.delayedMessages.size () > 0)
|
||||
ConnectToPeer (ident, it->second);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue