From 09acbce8db2bc6d54a6479b09fb7ed03d8e731dc Mon Sep 17 00:00:00 2001 From: Brenton Bostick Date: Tue, 18 Apr 2023 14:12:33 -0500 Subject: [PATCH] _bond_m guards _bond, not _paths_m (#1965) --- node/Peer.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node/Peer.hpp b/node/Peer.hpp index 668bbbee9..e6e9b65ed 100644 --- a/node/Peer.hpp +++ b/node/Peer.hpp @@ -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(); }