mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-02-23 20:27:37 +01:00
check for tunnel config
This commit is contained in:
parent
7b4fc19fca
commit
9416d29322
1 changed files with 2 additions and 2 deletions
|
@ -672,7 +672,7 @@ namespace tunnel
|
|||
{
|
||||
auto pool = tunnel->GetTunnelPool ();
|
||||
// let it die if the tunnel pool has been reconfigured and this is old
|
||||
if (pool && tunnel->GetTunnelConfig()->GetNumHops() == pool->GetNumOutboundHops())
|
||||
if (pool && tunnel->GetTunnelConfig() && tunnel->GetTunnelConfig()->GetNumHops() == pool->GetNumOutboundHops())
|
||||
{
|
||||
tunnel->SetIsRecreated ();
|
||||
pool->RecreateOutboundTunnel (tunnel);
|
||||
|
@ -726,7 +726,7 @@ namespace tunnel
|
|||
{
|
||||
auto pool = tunnel->GetTunnelPool ();
|
||||
// let it die if the tunnel pool was reconfigured and has different number of hops
|
||||
if (pool && tunnel->GetTunnelConfig()->GetNumHops() == pool->GetNumInboundHops())
|
||||
if (pool && tunnel->GetTunnelConfig() && tunnel->GetTunnelConfig()->GetNumHops() == pool->GetNumInboundHops())
|
||||
{
|
||||
tunnel->SetIsRecreated ();
|
||||
pool->RecreateInboundTunnel (tunnel);
|
||||
|
|
Loading…
Add table
Reference in a new issue