#9432 Fixed safe operation mode

This commit is contained in:
Daniel Maya 2022-09-12 09:22:08 +02:00
parent 06be85e044
commit 19998daf63
1 changed files with 10 additions and 5 deletions

View File

@ -2110,6 +2110,11 @@ sub pandora_process_module ($$$$$$$$$;$) {
# Update module status count.
$mark_for_update = 1;
# Safe mode execution.
if ($agent->{'safe_mode_module'} == $module->{'id_agente_modulo'}) {
safe_mode($pa_config, $agent, $module, $new_status, $known_status, $dbh);
}
} elsif ($status_changes >= $min_ff_event && $known_status == $new_status && $new_status == 1) {
# Safe mode execution.
if ($agent->{'safe_mode_module'} == $module->{'id_agente_modulo'}) {
safe_mode($pa_config, $agent, $module, $new_status, $known_status, $dbh);