Browse Source

check if ident is unrechable only once

debian
orignal 1 year ago
parent
commit
527ee3b3c5
  1. 2
      libi2pd/Transports.cpp

2
libi2pd/Transports.cpp

@ -461,7 +461,7 @@ namespace transport @@ -461,7 +461,7 @@ namespace transport
auto sz = it->second.delayedMessages.size ();
if (sz < MAX_NUM_DELAYED_MESSAGES)
{
if (sz > CHECK_PROFILE_NUM_DELAYED_MESSAGES)
if (sz < CHECK_PROFILE_NUM_DELAYED_MESSAGES && sz + msgs.size () >= CHECK_PROFILE_NUM_DELAYED_MESSAGES)
{
auto profile = i2p::data::GetRouterProfile (ident);
if (profile && profile->IsUnreachable ())

Loading…
Cancel
Save