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(); } diff --git a/node/Switch.cpp b/node/Switch.cpp index 9a81e532e..59ed34a04 100644 --- a/node/Switch.cpp +++ b/node/Switch.cpp @@ -642,6 +642,7 @@ void Switch::aqm_enqueue(void *tPtr, const SharedPtr &network, Packet & } } if (!selectedQueue) { + _aqm_m.unlock(); return; }