Fix ProtectedEventStream::process erase queue #46

This commit is contained in:
Dawid Drozd 2022-11-24 06:56:47 +01:00
parent 4689564c4c
commit e8724b6052

View File

@ -42,6 +42,7 @@ public:
std::move(_queue.begin(), std::move(_queue.begin(),
std::next(_queue.begin(), countElements), std::next(_queue.begin(), countElements),
std::back_inserter(processEvents)); std::back_inserter(processEvents));
_queue.erase(_queue, std::next(_queue.begin(), countElements));
} }
} }