From c9711914772cff3e398f8062e8e3f3f31df72bd4 Mon Sep 17 00:00:00 2001 From: Ramon Novoa Date: Mon, 15 Apr 2019 16:21:47 +0200 Subject: [PATCH] Do not get stuck trying to send buffered XML files to a secondary server. Ref pandora_enterprise#3379 Former-commit-id: 7f7a1ca5958cd8959516de5f46737d7b88074dd0 --- pandora_agents/unix/pandora_agent | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pandora_agents/unix/pandora_agent b/pandora_agents/unix/pandora_agent index e85d782d8a..b37d71f218 100755 --- a/pandora_agents/unix/pandora_agent +++ b/pandora_agents/unix/pandora_agent @@ -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 ();