test for zm_terminate in event run loop as well in order to reduce backtraces on segfault

pull/4084/head
Isaac Connor 2024-06-27 08:21:51 -04:00
parent e7d6b53697
commit b1d0b57f61
1 changed files with 1 additions and 1 deletions

View File

@ -683,7 +683,7 @@ void Event::Run() {
// The idea is to process the queue no matter what so that all packets get processed.
// We only break if the queue is empty
while (!terminate_) {
while (!terminate_ and !zm_terminate) {
ZMLockedPacket *packet_lock = packetqueue->get_packet(packetqueue_it);
if (packet_lock) {
std::shared_ptr<ZMPacket> packet = packet_lock->packet_;