Browse Source

don't process pending tunnel twice

pull/102/head
orignal 10 years ago
parent
commit
c30dc4f877
  1. 2
      Tunnel.cpp

2
Tunnel.cpp

@ -244,7 +244,7 @@ namespace tunnel @@ -244,7 +244,7 @@ namespace tunnel
Tunnel * Tunnels::GetPendingTunnel (uint32_t replyMsgID)
{
auto it = m_PendingTunnels.find(replyMsgID);
if (it != m_PendingTunnels.end ())
if (it != m_PendingTunnels.end () && it->second->GetState () == eTunnelStatePending)
{
it->second->SetState (eTunnelStateBuildReplyReceived);
return it->second;

Loading…
Cancel
Save