Browse Source

properly send expiration notice for websockets

pull/695/head
Jeff Becker 8 years ago
parent
commit
cd9cd84c5b
No known key found for this signature in database
GPG Key ID: AB950234D6EA286B
  1. 6
      Tunnel.cpp

6
Tunnel.cpp

@ -598,6 +598,8 @@ namespace tunnel @@ -598,6 +598,8 @@ namespace tunnel
hop = hop->next;
}
}
if(pool) pool->OnTunnelBuildResult(tunnel, eBuildResultTimeout);
EmitTunnelEvent("tunnel.state", tunnel.get(), eTunnelStateBuildFailed);
// delete
it = pendingTunnels.erase (it);
m_NumFailedTunnelCreations++;
@ -607,6 +609,10 @@ namespace tunnel @@ -607,6 +609,10 @@ namespace tunnel
break;
case eTunnelStateBuildFailed:
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);
m_NumFailedTunnelCreations++;
break;

Loading…
Cancel
Save