summaryrefslogtreecommitdiff
path: root/node
diff options
context:
space:
mode:
authorBrenton Bostick <[email protected]>2023-04-18 14:12:33 -0500
committerGitHub <[email protected]>2023-04-18 12:12:33 -0700
commit7c8d5b0afdf14a16ef48e7f4759572f50c63d419 (patch)
tree69ee1d07fcfe7426688b38122d64ae4f2b6f3e31 /node
parent7f63d896f9b8b9c71279d5ee6e284286a06e258d (diff)
_bond_m guards _bond, not _paths_m (#1965)
Diffstat (limited to 'node')
-rw-r--r--node/Peer.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/node/Peer.hpp b/node/Peer.hpp
index 668bbbee..e6e9b65e 100644
--- a/node/Peer.hpp
+++ b/node/Peer.hpp
@@ -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();
}