Skip to content
Snippets Groups Projects
Commit 7bfe9514 authored by Roman Tolchenov's avatar Roman Tolchenov
Browse files

Re #19764. Make sure algorithms subscribe once.

parent 833d0a54
No related branches found
No related tags found
No related merge requests found
......@@ -93,8 +93,10 @@ public:
m_progressObserver(*this, &AsynchronousTest::handleProgress), count(0) {
// DECLARE_ALGORITHM macro doesn't work because the class name contains '::'
// The algorithms need to be registered because cloning is done through AlgorithmFactory
AlgorithmFactory::Instance().subscribe<AsyncAlgorithm>();
AlgorithmFactory::Instance().subscribe<AsyncAlgorithmThrows>();
if (!AlgorithmFactory::Instance().exists("AsyncAlgorithm")) {
AlgorithmFactory::Instance().subscribe<AsyncAlgorithm>();
AlgorithmFactory::Instance().subscribe<AsyncAlgorithmThrows>();
}
}
void testExecution() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment