_bond_m guards _bond, not _paths_m (#1965)

This commit is contained in:
Brenton Bostick 2023-04-18 14:12:33 -05:00 committed by Grant Limberg
parent f813211cdd
commit 09acbce8db
No known key found for this signature in database
GPG key ID: 8F2F97D3BE8D7735

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();
}