get_packet can return null if we are terminating

This commit is contained in:
Isaac Connor 2021-01-26 12:22:26 -05:00
parent 7cc21b0d0b
commit e4831909d6
1 changed files with 1 additions and 0 deletions

View File

@ -1991,6 +1991,7 @@ bool Monitor::Analyse() {
// Write out starting packets, do not modify packetqueue it will garbage collect itself
while ( start_it != snap_it ) {
ZMPacket *p = packetqueue->get_packet(&start_it);
if ( !p ) break;
event->AddPacket(p);
p->unlock();
start_it ++;