clear unreachable flag upon succesive connect

This commit is contained in:
orignal 2023-07-17 18:44:51 -04:00
parent e7157cf15e
commit c620fc1232
4 changed files with 8 additions and 10 deletions

View file

@ -165,12 +165,12 @@ namespace data
}
}
void RouterProfile::Unreachable ()
void RouterProfile::Unreachable (bool unreachable)
{
m_LastUnreachableTime = i2p::util::GetSecondsSinceEpoch ();
m_LastUnreachableTime = unreachable ? i2p::util::GetSecondsSinceEpoch () : 0;
UpdateTime ();
}
void RouterProfile::Connected ()
{
m_HasConnected = true;