mirror of
https://github.com/PurpleI2P/i2pd
synced 2024-11-10 00:00:29 +03:00
save profile if has connected
This commit is contained in:
parent
1c1452e06b
commit
2e2cbe7803
@ -175,6 +175,7 @@ namespace data
|
||||
void RouterProfile::Connected ()
|
||||
{
|
||||
m_HasConnected = true;
|
||||
m_IsUseful = true;
|
||||
UpdateTime ();
|
||||
}
|
||||
|
||||
@ -209,7 +210,8 @@ namespace data
|
||||
m_NumTunnelsAgreed = 0;
|
||||
m_NumTunnelsDeclined = 0;
|
||||
m_NumTunnelsNonReplied = 0;
|
||||
m_IsUseful = false;
|
||||
// we do not reset m_HasConnected here
|
||||
// m_IsUseful = false;
|
||||
isBad = false;
|
||||
}
|
||||
if (isBad) m_NumTimesRejected++; else m_NumTimesTaken++;
|
||||
|
Loading…
Reference in New Issue
Block a user