1
0
mirror of https://github.com/PurpleI2P/i2pd.git synced 2025-01-22 08:14:15 +00:00

fixed crash

This commit is contained in:
orignal 2014-07-27 10:39:38 -04:00
parent 72e689791c
commit e77f625814

View File

@ -164,11 +164,11 @@ namespace tunnel
auto it = m_Tests.find (be32toh (deliveryStatus->msgID)); auto it = m_Tests.find (be32toh (deliveryStatus->msgID));
if (it != m_Tests.end ()) 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 // restore from test failed state if any
it->second.first->SetState (eTunnelStateEstablished); it->second.first->SetState (eTunnelStateEstablished);
it->second.second->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 else
i2p::garlic::routing.HandleDeliveryStatusMessage (msg->GetPayload (), msg->GetLength ()); // TODO: i2p::garlic::routing.HandleDeliveryStatusMessage (msg->GetPayload (), msg->GetLength ()); // TODO: