Fix: warning: mutex '_aqm_m' is not held on every path through here [-Wthread-safety-analysis] (#1964)

This commit is contained in:
Brenton Bostick 2023-04-18 14:14:05 -05:00 committed by Grant Limberg
parent 09acbce8db
commit ff37fe58f1
No known key found for this signature in database
GPG Key ID: 8F2F97D3BE8D7735

View File

@ -642,6 +642,7 @@ void Switch::aqm_enqueue(void *tPtr, const SharedPtr<Network> &network, Packet &
}
}
if (!selectedQueue) {
_aqm_m.unlock();
return;
}