mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
don't send RouterInfo twice
This commit is contained in:
parent
49a44fc92e
commit
86782aeb1b
4 changed files with 16 additions and 5 deletions
|
@ -644,7 +644,6 @@ namespace transport
|
|||
SetRemoteIdentity (existing ? existing->GetRouterIdentity () : ri.GetRouterIdentity ());
|
||||
m_Server.AddNTCP2Session (shared_from_this ());
|
||||
Established ();
|
||||
SendRouterInfo ();
|
||||
ReceiveLength ();
|
||||
}
|
||||
else
|
||||
|
@ -919,6 +918,12 @@ namespace transport
|
|||
SendQueue ();
|
||||
}
|
||||
|
||||
void NTCP2Session::SendLocalRouterInfo ()
|
||||
{
|
||||
if (!IsOutgoing ()) // we send it in SessionConfirmed
|
||||
SendRouterInfo ();
|
||||
}
|
||||
|
||||
NTCP2Server::NTCP2Server ():
|
||||
m_IsRunning (false), m_Thread (nullptr), m_Work (m_Service),
|
||||
m_TerminationTimer (m_Service)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue