From aab717bc91b0beb2cee4cdfd3941b4ff157bb4b9 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Wed, 27 Apr 2022 17:38:48 -0400 Subject: [PATCH] Add early test for zm_terminate after processing comms --- src/zm_monitorstream.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/zm_monitorstream.cpp b/src/zm_monitorstream.cpp index ca6d614d1..c553b702d 100644 --- a/src/zm_monitorstream.cpp +++ b/src/zm_monitorstream.cpp @@ -586,6 +586,7 @@ void MonitorStream::runStream() { Debug(2, "Have checking command Queue for connkey: %d", connkey); got_command = true; } + if (zm_terminate) break; // Update modified time of the socket .lock file so that we can tell which ones are stale. if (now - last_comm_update > Hours(1)) { touch(sock_path_lock);