BugFix Source init with clones when inactive at creation

This commit is contained in:
Bruno Herbelin
2022-04-16 23:25:20 +02:00
parent 0ddc03b7c0
commit 1e7dbb5331
3 changed files with 26 additions and 19 deletions

View File

@@ -564,7 +564,7 @@ void Source::setActive (bool on)
// do not disactivate if a clone depends on it
for(auto clone = clones_.begin(); clone != clones_.end(); ++clone) {
if ( (*clone)->active() )
if ( (*clone)->ready() && (*clone)->active() )
active_ = true;
}