Skip to content

Commit

Permalink
Wait for result before destructing interface
Browse files Browse the repository at this point in the history
  • Loading branch information
SilkeSchomann committed Oct 7, 2024
1 parent 452120b commit 24ebade
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion qt/widgets/common/src/BatchAlgorithmRunner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ BatchAlgorithmRunner::BatchAlgorithmRunner(QObject *parent)
m_executeAsync(this, &BatchAlgorithmRunner::executeBatchAsyncImpl) {}

BatchAlgorithmRunner::~BatchAlgorithmRunner() {
cancelBatch();
Poco::ActiveResult<bool> result = m_executeAsync(Poco::Void());
result.wait();

removeAllObservers();
}

Expand Down

0 comments on commit 24ebade

Please sign in to comment.