mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-13 04:46:38 +01:00
don't hold RouterInfo after successive connect
This commit is contained in:
parent
a0b35ebd3e
commit
61e9c31f0d
1 changed files with 3 additions and 0 deletions
|
@ -431,6 +431,8 @@ namespace transport
|
|||
|
||||
bool Transports::ConnectToPeer (const i2p::data::IdentHash& ident, Peer& peer)
|
||||
{
|
||||
if (!peer.router) // reconnect
|
||||
peer.router = netdb.FindRouter (ident); // try to get new one from netdb
|
||||
if (peer.router) // we have RI already
|
||||
{
|
||||
if (!peer.numAttempts) // NTCP2
|
||||
|
@ -638,6 +640,7 @@ namespace transport
|
|||
auto it = m_Peers.find (ident);
|
||||
if (it != m_Peers.end ())
|
||||
{
|
||||
it->second.router = nullptr; // we don't need RouterInfo after successive connect
|
||||
bool sendDatabaseStore = true;
|
||||
if (it->second.delayedMessages.size () > 0)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue