Don't loop forever ignoring sigterm on initial connect
parent
b5ee966d90
commit
8e5a9e462c
|
@ -246,10 +246,12 @@ int main(int argc, char *argv[]) {
|
|||
|
||||
monitor->LoadCamera();
|
||||
|
||||
while (!monitor->connect()) {
|
||||
while (!monitor->connect() and !zm_terminate) {
|
||||
Warning("Couldn't connect to monitor %d", monitor->Id());
|
||||
sleep(1);
|
||||
}
|
||||
if (zm_terminate) break;
|
||||
|
||||
SystemTimePoint now = std::chrono::system_clock::now();
|
||||
monitor->SetStartupTime(now);
|
||||
|
||||
|
|
Loading…
Reference in New Issue