mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-18 05:39:59 +01:00
BugFix: prevent crash on embedded session update
This commit is contained in:
@@ -154,10 +154,10 @@ void SessionSource::update(float dt)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// delete source which failed
|
// delete source which failed
|
||||||
SourceListUnique::iterator failure = session_->failedSources().cbegin();
|
if ( !session_->failedSources().empty() ) {
|
||||||
if ( failure != session_->failedSources().cend() ) {
|
Source *failure = *(session_->failedSources().cbegin());
|
||||||
session_->deleteSource( *failure );
|
Log::Info("Source '%s' deleted from Session group %s.", failure->name().c_str(), std::to_string(session_->id()).c_str());
|
||||||
Log::Info("Source '%s' deleted from Session group %s.", (*failure)->name().c_str(), std::to_string(session_->id()).c_str());
|
session_->deleteSource( failure );
|
||||||
// fail session if all sources failed
|
// fail session if all sources failed
|
||||||
if ( session_->size() < 1)
|
if ( session_->size() < 1)
|
||||||
failed_ = true;
|
failed_ = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user