_bond_m guards _bond, not _paths_m

This commit is contained in:
Brenton Bostick 2023-04-14 13:41:41 -04:00
parent 7f63d896f9
commit 2ae49a01d0

View file

@ -504,7 +504,7 @@ public:
* @return The bonding policy used to reach this peer
*/
inline int8_t bondingPolicy() {
Mutex::Lock _l(_paths_m);
Mutex::Lock _l(_bond_m);
if (_bond) {
return _bond->policy();
}