Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/zmc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,9 @@ int main(int argc, char *argv[]) {
zmDbDo(sql);
} // end foreach monitor

if (zm_terminate) break;
// No break on zm_terminate here: the capture loop below doesn't run then,
// and the Close()/disconnect() loop after it must, or the monitors started
// so far keep their threads and are never freed (their zones hold them).

std::vector<SystemTimePoint> last_capture_times = std::vector<SystemTimePoint>(monitors.size());
Microseconds sleep_time = Microseconds(0);
Expand Down