From 1cf06fca95ce7d97d2ace98cc9480d604524be6e Mon Sep 17 00:00:00 2001 From: Brenton Bostick Date: Fri, 14 Apr 2023 13:11:13 -0400 Subject: [PATCH] Fix: warning: mutex '_aqm_m' is not held on every path through here [-Wthread-safety-analysis] --- 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; }