mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-02-13 08:17:38 +01:00
check if ident is unrechable only once
This commit is contained in:
parent
cd5bfaabb5
commit
527ee3b3c5
1 changed files with 1 additions and 1 deletions
|
@ -461,7 +461,7 @@ namespace transport
|
||||||
auto sz = it->second.delayedMessages.size ();
|
auto sz = it->second.delayedMessages.size ();
|
||||||
if (sz < MAX_NUM_DELAYED_MESSAGES)
|
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);
|
auto profile = i2p::data::GetRouterProfile (ident);
|
||||||
if (profile && profile->IsUnreachable ())
|
if (profile && profile->IsUnreachable ())
|
||||||
|
|
Loading…
Add table
Reference in a new issue