mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-22 04:04:16 +00:00
fixed crash
This commit is contained in:
parent
72e689791c
commit
e77f625814
@ -164,11 +164,11 @@ namespace tunnel
|
||||
auto it = m_Tests.find (be32toh (deliveryStatus->msgID));
|
||||
if (it != m_Tests.end ())
|
||||
{
|
||||
LogPrint ("Tunnel test ", it->first, " successive. ", i2p::util::GetMillisecondsSinceEpoch () - be64toh (deliveryStatus->timestamp), " milliseconds");
|
||||
m_Tests.erase (it);
|
||||
// restore from test failed state if any
|
||||
it->second.first->SetState (eTunnelStateEstablished);
|
||||
it->second.second->SetState (eTunnelStateEstablished);
|
||||
LogPrint ("Tunnel test ", it->first, " successive. ", i2p::util::GetMillisecondsSinceEpoch () - be64toh (deliveryStatus->timestamp), " milliseconds");
|
||||
m_Tests.erase (it);
|
||||
}
|
||||
else
|
||||
i2p::garlic::routing.HandleDeliveryStatusMessage (msg->GetPayload (), msg->GetLength ()); // TODO:
|
||||
|
Loading…
x
Reference in New Issue
Block a user