summaryrefslogtreecommitdiff
path: root/node
diff options
context:
space:
mode:
authorBrenton Bostick <[email protected]>2023-04-18 14:14:05 -0500
committerGitHub <[email protected]>2023-04-18 12:14:05 -0700
commit1b59712c48318eff11225d03060b4f66aacbcd59 (patch)
treef08187a4ff8d0f999b34b1e7c2cef10244dfcc80 /node
parent7c8d5b0afdf14a16ef48e7f4759572f50c63d419 (diff)
Fix: warning: mutex '_aqm_m' is not held on every path through here [-Wthread-safety-analysis] (#1964)
Diffstat (limited to 'node')
-rw-r--r--node/Switch.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/node/Switch.cpp b/node/Switch.cpp
index 9a81e532..59ed34a0 100644
--- a/node/Switch.cpp
+++ b/node/Switch.cpp
@@ -642,6 +642,7 @@ void Switch::aqm_enqueue(void *tPtr, const SharedPtr<Network> &network, Packet &
}
}
if (!selectedQueue) {
+ _aqm_m.unlock();
return;
}