mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-04-20 17:00:49 +00:00
_bond_m guards _bond, not _paths_m (#1965)
This commit is contained in:
parent
7f63d896f9
commit
7c8d5b0afd
@ -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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user