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

Ref pandora_enterprise#3379


Former-commit-id: 7f7a1ca5958cd8959516de5f46737d7b88074dd0
This commit is contained in:
Ramon Novoa 2019-04-15 16:21:47 +02:00
parent 68258661b1
commit c971191477
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 ();