Merge branch 'ent-3379-7306-problema-con-agente-secondary-mode-xml_buffer' into 'develop'

Do not get stuck trying to send buffered XML files to a secondary server.

See merge request artica/pandorafms!2359

Former-commit-id: b090e4f86b2bbb0d7e2728b80ceea1dfc149b262
This commit is contained in:
Alejandro Fraguas 2019-04-17 12:58:46 +02:00
commit eacef25778
1 changed files with 4 additions and 0 deletions

View File

@ -1075,6 +1075,10 @@ sub send_buffered_xml_files ($;$) {
unlink ("$temporal_file/$xml_file");
}
}
# Do not get stuck trying to send buffered XML files to a secondary server.
elsif ($flag_always == 2) {
last;
}
}
if (defined($flag_always) && ($flag_always == 2)){
swap_servers ();