From ff37fe58f139fabf740ee91a29c0c643364e345c Mon Sep 17 00:00:00 2001 From: Brenton Bostick Date: Tue, 18 Apr 2023 14:14:05 -0500 Subject: [PATCH] Fix: warning: mutex '_aqm_m' is not held on every path through here [-Wthread-safety-analysis] (#1964) --- node/Switch.cpp | 1 + 1 file changed, 1 insertion(+) 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; }