mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2025-12-23 22:37:53 -05:00
In order to reboot, we need to be able to open the control. So don't bothwe with ping.
This commit is contained in:
@@ -132,7 +132,7 @@ while (!$zm_terminate) {
|
||||
Debug("Monitor $monitor->{Id} $monitor->{Name}, startup time $now - $startup_time $startup_elapsed <? $Config{ZM_WATCH_MAX_DELAY}");
|
||||
if ($monitor->ControlId()) {
|
||||
my $control = $monitor->Control();
|
||||
if ($control and $control->CanReboot() and $control->ping() and $control->open()) {
|
||||
if ($control and $control->CanReboot() and $control->open()) {
|
||||
$control->reboot();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user