Skip to content

Commit 2ca315d

Browse files
committed
tfbuilder: fix dpl option
1 parent c42d97e commit 2ca315d

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/TfBuilder/TfBuilderDevice.cxx

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,17 @@ void TfBuilderDevice::InitTask()
6363
mTfBufferSize = GetConfig()->GetValue<std::uint64_t>(OptionKeyTfMemorySize);
6464
mTfBufferSize <<= 20; /* input parameter is in MiB */
6565

66+
// Using DPL?
67+
if (mDplChannelName != "") {
68+
mDplEnabled = true;
69+
mStandalone = false;
70+
IDDLOG("Using DPL channel. channel_name={}", mDplChannelName);
71+
} else {
72+
mDplEnabled = false;
73+
mStandalone = true;
74+
IDDLOG("Not sending to DPL.");
75+
}
76+
6677
// start buffer creation in an async thread
6778
mTfBuilder = std::make_unique<TimeFrameBuilder>(MemI(), dplEnabled());
6879
std::promise<bool> lBuffersAllocated;
@@ -126,17 +137,6 @@ void TfBuilderDevice::InitTask()
126137
throw "Discovery database error: this TfBuilder was/is already present.";
127138
return;
128139
}
129-
130-
// Using DPL?
131-
if (mDplChannelName != "") {
132-
mDplEnabled = true;
133-
mStandalone = false;
134-
IDDLOG("Using DPL channel. channel_name={}", mDplChannelName);
135-
} else {
136-
mDplEnabled = false;
137-
mStandalone = true;
138-
IDDLOG("Not sending to DPL.");
139-
}
140140
}
141141

142142
// start the task

0 commit comments

Comments
 (0)