Skip to content

Commit

Permalink
_bond_m guards _bond, not _paths_m (#1965)
Browse files Browse the repository at this point in the history
  • Loading branch information
bostick authored and glimberg committed Apr 19, 2023
1 parent f813211 commit 09acbce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion node/Peer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ class Peer
* @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();
}
Expand Down

0 comments on commit 09acbce

Please sign in to comment.