From 7b4fc19fca254e16047a1297fa3f8088e0ccc5b8 Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Mon, 26 Feb 2018 08:18:01 -0500 Subject: [PATCH] be concise --- libi2pd/TunnelPool.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/libi2pd/TunnelPool.cpp b/libi2pd/TunnelPool.cpp index 197d1ebd..4f740a09 100644 --- a/libi2pd/TunnelPool.cpp +++ b/libi2pd/TunnelPool.cpp @@ -491,7 +491,10 @@ namespace tunnel outboundTunnel = tunnels.GetNextOutboundTunnel (); LogPrint (eLogDebug, "Tunnels: Re-creating destination inbound tunnel..."); std::shared_ptr config; - if (m_NumInboundHops > 0 && tunnel->GetPeers().size() > 0) config = std::make_shared(tunnel->GetPeers ()); + if (m_NumInboundHops > 0 && tunnel->GetPeers().size()) + { + config = std::make_shared(tunnel->GetPeers ()); + } if (m_NumInboundHops == 0 || config) { auto newTunnel = tunnels.CreateInboundTunnel (config, outboundTunnel); @@ -536,7 +539,7 @@ namespace tunnel { LogPrint (eLogDebug, "Tunnels: Re-creating destination outbound tunnel..."); std::shared_ptr config; - if (tunnel->GetPeers().size() > 0 && m_NumOutboundHops > 0) + if (m_NumOutboundHops > 0 && tunnel->GetPeers().size()) { config = std::make_shared(tunnel->GetPeers (), inboundTunnel->GetNextTunnelID (), inboundTunnel->GetNextIdentHash ()); }