build new tunnels instead slow

This commit is contained in:
orignal
2021-06-02 14:45:21 -04:00
parent ef8c4389e1
commit 5ce9c0f1e2
2 changed files with 5 additions and 2 deletions

View File

@@ -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;