Skip to content

Commit 5fce160

Browse files
author
RubioJr9
committed
Don't dereference thread pointer if it doesn't exist
1 parent 31efa38 commit 5fce160

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/Dataflow/Engine/Scheduler/ExecutionStrategy.cc

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,9 @@ void ExecutionQueueManager::executeImpl(ExecutionContextHandle ctx)
123123

124124
void ExecutionQueueManager::stop()
125125
{
126-
executionLaunchThread_->interrupt();
127-
executionLaunchThread_.reset();
128-
}
126+
if (executionLaunchThread_)
127+
{
128+
executionLaunchThread_->interrupt();
129+
executionLaunchThread_.reset();
130+
}
131+
}

0 commit comments

Comments
 (0)