From 132682bc100178438795987f93d5e06f70f08ab8 Mon Sep 17 00:00:00 2001 From: Alexey Rybalchenko Date: Thu, 12 Oct 2017 11:42:51 +0200 Subject: [PATCH] Fix MQ example 6 condition --- .../MQ/6-multiple-channels/FairMQExample6Sampler.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/examples/MQ/6-multiple-channels/FairMQExample6Sampler.cxx b/examples/MQ/6-multiple-channels/FairMQExample6Sampler.cxx index 069842a1..eacc74c5 100644 --- a/examples/MQ/6-multiple-channels/FairMQExample6Sampler.cxx +++ b/examples/MQ/6-multiple-channels/FairMQExample6Sampler.cxx @@ -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; + } + } } } }