aboutsummaryrefslogtreecommitdiffstats
path: root/src/OrderedQueue.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/OrderedQueue.cpp')
-rw-r--r--src/OrderedQueue.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/OrderedQueue.cpp b/src/OrderedQueue.cpp
index 8a768e7..9e69d95 100644
--- a/src/OrderedQueue.cpp
+++ b/src/OrderedQueue.cpp
@@ -44,7 +44,7 @@ void OrderedQueue::push(int32_t index, const uint8_t* buf, size_t size)
}
if (_stock.size() < _capacity) {
- if (_stock.find(index) == _stock.end()) {
+ if (_stock.find(index) != _stock.end()) {
// index already exists, duplicated frame
// Replace the old one by the new one.
// the old one could a an old frame from the previous index loop