don't process pending tunnel twice

This commit is contained in:
orignal 2014-09-28 15:06:07 -04:00
parent f7325f6c4f
commit c30dc4f877

View File

@ -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;