|
|
@ -598,6 +598,8 @@ namespace tunnel |
|
|
|
hop = hop->next; |
|
|
|
hop = hop->next; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if(pool) pool->OnTunnelBuildResult(tunnel, eBuildResultTimeout); |
|
|
|
|
|
|
|
EmitTunnelEvent("tunnel.state", tunnel.get(), eTunnelStateBuildFailed); |
|
|
|
// delete
|
|
|
|
// delete
|
|
|
|
it = pendingTunnels.erase (it); |
|
|
|
it = pendingTunnels.erase (it); |
|
|
|
m_NumFailedTunnelCreations++; |
|
|
|
m_NumFailedTunnelCreations++; |
|
|
@ -607,6 +609,10 @@ namespace tunnel |
|
|
|
break; |
|
|
|
break; |
|
|
|
case eTunnelStateBuildFailed: |
|
|
|
case eTunnelStateBuildFailed: |
|
|
|
LogPrint (eLogDebug, "Tunnel: pending build request ", it->first, " failed, deleted"); |
|
|
|
LogPrint (eLogDebug, "Tunnel: pending build request ", it->first, " failed, deleted"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(pool) pool->OnTunnelBuildResult(tunnel, eBuildResultRejected); |
|
|
|
|
|
|
|
EmitTunnelEvent("tunnel.state", tunnel.get(), eTunnelStateBuildFailed); |
|
|
|
|
|
|
|
|
|
|
|
it = pendingTunnels.erase (it); |
|
|
|
it = pendingTunnels.erase (it); |
|
|
|
m_NumFailedTunnelCreations++; |
|
|
|
m_NumFailedTunnelCreations++; |
|
|
|
break; |
|
|
|
break; |
|
|
|