From 165757176a8fc49e51ee8d925089de021ff6e28b Mon Sep 17 00:00:00 2001 From: Joseph Henry Date: Fri, 1 Oct 2021 11:11:20 -0700 Subject: [PATCH] Potential fix fro deadlock bug --- node/Peer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node/Peer.cpp b/node/Peer.cpp index 941bd6c48..f8d51a901 100644 --- a/node/Peer.cpp +++ b/node/Peer.cpp @@ -228,9 +228,9 @@ void Peer::received( SharedPtr Peer::getAppropriatePath(int64_t now, bool includeExpired, int32_t flowId) { + Mutex::Lock _l(_paths_m); Mutex::Lock _l(_bond_m); if (!_bond) { - Mutex::Lock _l(_paths_m); unsigned int bestPath = ZT_MAX_PEER_NETWORK_PATHS; /** * Send traffic across the highest quality path only. This algorithm will still