it is ok to have empty monitors, should detect when new ones arrive

This commit is contained in:
Isaac Connor 2021-04-27 10:28:44 -04:00
parent 75973a2df1
commit d9aac9bea9
1 changed files with 1 additions and 7 deletions

View File

@ -146,13 +146,6 @@ int main(int argc, char *argv[]) {
std::vector<std::shared_ptr<Monitor>> monitors = Monitor::LoadMonitors(where, Monitor::QUERY);
if (monitors.empty()) {
Error("No monitors found");
exit(-1);
} else {
Debug(2, "%d monitors loaded", monitors.size());
}
Info("Starting RTSP Server version %s", ZM_VERSION);
zmSetDefaultHupHandler();
zmSetDefaultTermHandler();
@ -184,6 +177,7 @@ int main(int argc, char *argv[]) {
}
while (!zm_terminate) {
for (size_t i = 0; i < monitors.size(); i++) {
std::shared_ptr<Monitor> monitor = monitors[i];