Add locking to get_event_start_it. Packets could get deleted while we are figuring this out.

pull/3172/head
Isaac Connor 2021-02-18 16:59:17 -05:00
parent 5ad9244a73
commit 78a5e78e4c
1 changed files with 2 additions and 0 deletions

View File

@ -500,6 +500,8 @@ packetqueue_iterator *PacketQueue::get_event_start_packet_it(
unsigned int pre_event_count
) {
std::unique_lock<std::mutex> lck(mutex);
packetqueue_iterator *it = new packetqueue_iterator;
iterators.push_back(it);