get_packet can return null if we are terminating
This commit is contained in:
parent
7cc21b0d0b
commit
e4831909d6
|
@ -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 ++;
|
||||
|
|
Loading…
Reference in New Issue