mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-10-25 15:58:24 -04:00
Test for success loading Control
This commit is contained in:
1 parent
f4d77116ea
commit
dc24be4d99
1 file changed
+1
-1
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user