Browse Source

_bond_m guards _bond, not _paths_m (#1965)

Brenton Bostick 2 years ago
parent
commit
7c8d5b0afd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      node/Peer.hpp

+ 1 - 1
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();
 		}