瀏覽代碼

_bond_m guards _bond, not _paths_m (#1965)

Brenton Bostick 2 年之前
父節點
當前提交
7c8d5b0afd
共有 1 個文件被更改,包括 1 次插入1 次删除
  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
 	 * @return The bonding policy used to reach this peer
 	 */
 	 */
 	inline int8_t bondingPolicy() {
 	inline int8_t bondingPolicy() {
-		Mutex::Lock _l(_paths_m);
+		Mutex::Lock _l(_bond_m);
 		if (_bond) {
 		if (_bond) {
 			return _bond->policy();
 			return _bond->policy();
 		}
 		}