In order to reboot, we need to be able to open the control. So don't bothwe with ping.

pull/4460/head
Isaac Connor 2025-10-24 16:59:13 -04:00
parent da450eca2f
commit be98d56c43
1 changed files with 1 additions and 1 deletions

View File

@ -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();
}
}