mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
build new tunnels instead slow
This commit is contained in:
parent
ef8c4389e1
commit
5ce9c0f1e2
2 changed files with 5 additions and 2 deletions
|
@ -525,7 +525,7 @@ namespace tunnel
|
|||
|
||||
void TunnelPool::RecreateInboundTunnel (std::shared_ptr<InboundTunnel> tunnel)
|
||||
{
|
||||
if (IsExploratory ()) // always create new exploratory tunnel
|
||||
if (IsExploratory () || tunnel->IsSlow ()) // always create new exploratory tunnel or if slow
|
||||
{
|
||||
CreateInboundTunnel ();
|
||||
return;
|
||||
|
@ -576,7 +576,7 @@ namespace tunnel
|
|||
|
||||
void TunnelPool::RecreateOutboundTunnel (std::shared_ptr<OutboundTunnel> tunnel)
|
||||
{
|
||||
if (IsExploratory ()) // always create new exploratory tunnel
|
||||
if (IsExploratory () || tunnel->IsSlow ()) // always create new exploratory tunnel or if slow
|
||||
{
|
||||
CreateOutboundTunnel ();
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue