Skip to content

Commit 3637ab4

Browse files
committed
tfbuilder: fix teardown chain
1 parent b3128ce commit 3637ab4

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

src/StfBuilder/StfBuilderDevice.cxx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -233,15 +233,11 @@ void StfBuilderDevice::ResetTask()
233233
// Signal ConditionalRun() and other threads to stop
234234
I().mRunning = false;
235235

236-
// stop the memory resources
237-
MemI().stop();
238-
239236
// Stop the pipeline
240237
stopPipeline();
241238
clearPipeline();
242239

243240
// NOTE: everything with threads goes below
244-
245241
// signal and wait for the output thread
246242
if (I().mFileSource->enabled()) {
247243
I().mFileSource->stop();
@@ -264,10 +260,12 @@ void StfBuilderDevice::ResetTask()
264260
I().mInfoThread.join();
265261
}
266262

263+
// stop the memory resources very last
264+
MemI().stop();
265+
267266
DDDLOG("StfBuilderDevice::ResetTask() done... ");
268267
}
269268

270-
271269
void StfBuilderDevice::StfOutputThread()
272270
{
273271
// wait for the device to go into RUNNING state

0 commit comments

Comments
 (0)