extmidi: Do not continuously retry if execvp fails

See: #478
This commit is contained in:
Jonathan G Rennison
2023-01-24 23:55:11 +00:00
parent 80f0250de6
commit 66166bad48
4 changed files with 21 additions and 3 deletions

View File

@@ -262,7 +262,13 @@ void MusicSystem::CheckStatus()
}
if (this->active_playlist.empty()) return;
/* If we were supposed to be playing, but music has stopped, move to next song */
if (this->IsPlaying() && !MusicDriver::GetInstance()->IsSongPlaying()) this->Next();
if (this->IsPlaying() && !MusicDriver::GetInstance()->IsSongPlaying()) {
if (MusicDriver::GetInstance()->IsInFailedState()) {
this->Stop();
} else {
this->Next();
}
}
}
/** Is the player getting music right now? */