Commit d11d6c7c authored by David COME's avatar David COME
Browse files

Fixed RecallReportPacker who was sending a superfluous report, thus causing tests to fail

parent 9007807d
......@@ -116,7 +116,13 @@ void RecallReportPacker::ReportSuccessful::execute(RecallReportPacker& parent){
//flush
//------------------------------------------------------------------------------
void RecallReportPacker::flush(){
//we dont want to send empty reports
unsigned int totalSize = m_listReports->failedRecalls().size() +
m_listReports->successfulRecalls().size();
if(totalSize==0) {
return;
}
client::ClientInterface::RequestReport chrono;
try{
m_client.reportRecallResults(*m_listReports,chrono);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment