Nominate newly-learned paths to bond

This commit is contained in:
Joseph Henry 2021-09-06 15:29:03 -07:00
parent c3a42bf590
commit a4b98518e3
No known key found for this signature in database
GPG Key ID: C45B33FF5EBC9344

View File

@ -146,6 +146,10 @@ void Peer::received(
_paths[replacePath].lr = now;
_paths[replacePath].p = path;
_paths[replacePath].priority = 1;
Mutex::Lock _l(_bond_m);
if(_bond) {
_bond->nominatePathToBond(_paths[replacePath].p, now);
}
}
} else {
Mutex::Lock ltl(_lastTriedPath_m);