Add locking to get_event_start_it. Packets could get deleted while we are figuring this out.
parent
5ad9244a73
commit
78a5e78e4c
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue