From dc24be4d9971fd1e6182ea846482f4bbdf734998 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Wed, 17 Aug 2022 14:58:18 -0400 Subject: [PATCH] Test for success loading Control --- scripts/zmwatch.pl.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/zmwatch.pl.in b/scripts/zmwatch.pl.in index 5bba0e33c..aae549b23 100644 --- a/scripts/zmwatch.pl.in +++ b/scripts/zmwatch.pl.in @@ -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(); } }