Skip to content

Commit b752def

Browse files
committed
DPL: Fix: move allfound optimization to correct loop
1 parent efda2cb commit b752def

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Framework/Core/src/ExternalFairMQDeviceProxy.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,6 @@ void injectMissingData(fair::mq::Device& device, fair::mq::Parts& parts, std::ve
241241
present.resize(routes.size(), false);
242242
static std::vector<size_t> unmatchedDescriptions;
243243
unmatchedDescriptions.clear();
244-
bool allFound = true;
245244
DataProcessingHeader const* dph = nullptr;
246245
DataHeader const* firstDH = nullptr;
247246
bool hassih = false;
@@ -261,6 +260,7 @@ void injectMissingData(fair::mq::Device& device, fair::mq::Parts& parts, std::ve
261260

262261
size_t foundDataSpecs = 0;
263262
for (int msgidx = 0; msgidx < parts.Size(); msgidx += 2) {
263+
bool allFound = true;
264264
const auto dh = o2::header::get<DataHeader*>(parts.At(msgidx)->GetData());
265265
auto const sih = o2::header::get<SourceInfoHeader*>(parts.At(msgidx)->GetData());
266266
if (sih != nullptr) {

0 commit comments

Comments
 (0)