Browse Source

reset routing path if session is stuck

pull/2095/head
orignal 4 months ago
parent
commit
fa218d3cf5
  1. 4
      libi2pd/Datagram.cpp

4
libi2pd/Datagram.cpp

@ -383,8 +383,8 @@ namespace datagram @@ -383,8 +383,8 @@ namespace datagram
}
auto path = m_RoutingSession->GetSharedRoutingPath();
if (path && m_RoutingSession->IsRatchets () &&
m_LastUse > m_RoutingSession->GetLastActivityTimestamp ()*1000 + DATAGRAM_SESSION_PATH_TIMEOUT)
if (path && m_RoutingSession->IsRatchets () && (m_RoutingSession->CleanupUnconfirmedTags () ||
m_LastUse > m_RoutingSession->GetLastActivityTimestamp ()*1000 + DATAGRAM_SESSION_PATH_TIMEOUT))
{
m_RoutingSession->SetSharedRoutingPath (nullptr);
path = nullptr;

Loading…
Cancel
Save