Skip to content

Commit 208e1b0

Browse files
authored
Merge pull request #1985 from RubioJr9/linux_closing
Closes #1962
2 parents 2d71ab8 + 5fce160 commit 208e1b0

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

src/Core/Application/Application.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,8 @@ namespace SCIRun
6464
{
6565
namespace Core
6666
{
67-
class ApplicationPrivate
67+
struct ApplicationPrivate
6868
{
69-
public:
7069
CommandLineParser parser;
7170
boost::filesystem::path app_filepath_;
7271
boost::filesystem::path app_filename_;

src/Dataflow/Engine/Controller/NetworkEditorController.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ NetworkEditorController::~NetworkEditorController()
102102
#ifdef BUILD_WITH_PYTHON
103103
NetworkEditorPythonAPI::clearImpl();
104104
#endif
105+
executionManager_.stop();
105106
}
106107

107108
namespace

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)