Return from the data server consumer if the XML file was not found.

This commit is contained in:
Ramon Novoa 2015-07-22 10:37:23 +02:00
parent d9b95a32f5
commit 6592e0f5b9
1 changed files with 2 additions and 0 deletions

View File

@ -162,6 +162,7 @@ sub data_consumer ($$) {
$AgentSem->down ();
delete ($Agents{$agent_name});
$AgentSem->up ();
return;
}
# Try to parse the XML 2 times, with a delay between tries of 2 seconds
@ -192,6 +193,7 @@ sub data_consumer ($$) {
$AgentSem->down ();
delete ($Agents{$agent_name});
$AgentSem->up ();
return;
}
unlink ($file_name);