Fix MQ example 6 condition

This commit is contained in:
Alexey Rybalchenko 2017-10-12 11:42:51 +02:00
parent 80a0e9dc0e
commit 71894e50b8

View File

@ -63,13 +63,13 @@ void FairMQExample6Sampler::Run()
if (Send(msg, "data") > 0)
{
LOG(INFO) << "Sent \"" << fText << "\"";
}
}
if (fMaxIterations > 0 && ++fNumIterations >= fMaxIterations)
{
LOG(INFO) << "Configured maximum number of iterations reached. Leaving RUNNING state.";
break;
if (fMaxIterations > 0 && ++fNumIterations >= fMaxIterations)
{
LOG(INFO) << "Configured maximum number of iterations reached. Leaving RUNNING state.";
break;
}
}
}
}
}