mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 03:37:49 +02:00
clear unreachable flag upon succesive connect
This commit is contained in:
parent
e7157cf15e
commit
c620fc1232
4 changed files with 8 additions and 10 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue