Test for success loading Control

This commit is contained in:
Isaac Connor committed 2022-08-17 14:58:18 -04:00
1 parent f4d77116ea
commit dc24be4d99
1 file changed
+1 -1
+1 -1
View File
@@ -129,7 +129,7 @@ while (!$zm_terminate) {
if (($now - $startup_time) > $Config{ZM_WATCH_MAX_DELAY}) {
if ($monitor->ControlId()) {
my $control = $monitor->Control();
if ($control->CanReboot() and $control->open()) {
if ($control and $control->CanReboot() and $control->open()) {
$control->reboot();
}
}