Skip to content

Commit

Permalink
Fixup a77c40f
Browse files Browse the repository at this point in the history
Since track_ok is used as a loop control, we need to return true if current_track is null
in order to break out, else we get stuck in an infinite loop.
  • Loading branch information
Vultraz committed Nov 9, 2017
1 parent 2c5a2ea commit 5d423ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sound.cpp
Expand Up @@ -263,7 +263,7 @@ static bool track_ok(const std::string& id)
LOG_AUDIO << "Considering " << id << "\n";

if(!current_track) {
return false;
return true;
}

// If they committed changes to list, we forget previous plays, but
Expand Down

0 comments on commit 5d423ae

Please sign in to comment.