From 2ae49a01d06434fb043aa48933b8061931fa05d3 Mon Sep 17 00:00:00 2001 From: Brenton Bostick Date: Fri, 14 Apr 2023 13:41:41 -0400 Subject: [PATCH] _bond_m guards _bond, not _paths_m --- 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 @@ 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(); }