mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-24 01:46:36 +02:00
don't process pending tunnel twice
This commit is contained in:
parent
f7325f6c4f
commit
c30dc4f877
1 changed files with 1 additions and 1 deletions
|
@ -244,7 +244,7 @@ namespace tunnel
|
||||||
Tunnel * Tunnels::GetPendingTunnel (uint32_t replyMsgID)
|
Tunnel * Tunnels::GetPendingTunnel (uint32_t replyMsgID)
|
||||||
{
|
{
|
||||||
auto it = m_PendingTunnels.find(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);
|
it->second->SetState (eTunnelStateBuildReplyReceived);
|
||||||
return it->second;
|
return it->second;
|
||||||
|
|
Loading…
Add table
Reference in a new issue