Add early test for zm_terminate after processing comms

This commit is contained in:
Isaac Connor committed 2022-04-28 16:45:54 -04:00
1 parent dc055fb240
commit aab717bc91
1 file changed
+1
+1
View File
@@ -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);