mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-07 06:09:42 +00:00
update RouterInfo if congestion cap changed
This commit is contained in:
@@ -1149,14 +1149,16 @@ namespace data
|
||||
SetProperty ("caps", caps);
|
||||
}
|
||||
|
||||
void LocalRouterInfo::SetHighCongestion (bool highCongestion)
|
||||
bool LocalRouterInfo::SetHighCongestion (bool highCongestion)
|
||||
{
|
||||
Congestion c = highCongestion ? eHighCongestion : eLowCongestion;
|
||||
if (c != GetCongestion ())
|
||||
{
|
||||
SetCongestion (c);
|
||||
UpdateCapsProperty ();
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
void LocalRouterInfo::WriteToStream (std::ostream& s) const
|
||||
|
||||
Reference in New Issue
Block a user