Add early test for zm_terminate after processing comms

This commit is contained in:
Isaac Connor
2022-04-27 17:38:48 -04:00
parent dc055fb240
commit aab717bc91

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);