Commit 950c66b0 authored by Leander Schulten's avatar Leander Schulten
Browse files

Fix compilation error in ProgramBlock.cpp

parent f4ac0c5f
......@@ -244,7 +244,7 @@ namespace Modules {
}
void ProgramBlock::replaceConsumer(std::shared_ptr<Consumer> original, std::shared_ptr<Consumer> newConsumer){
if(std::find(std::cbegin(consumer),std::cend(consumer),original) == std::end(consumer))
if(std::find_if(std::cbegin(consumer),std::cend(consumer),[&](const auto &c){return c.source == original;}) == std::end(consumer))
return;
if(getStatus() == Running)
original->stop();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment