player/Thread: remove redundant outputs.Cancel() call

The STOP, EXIT and CLOSE_AUDIO commands are not finished here; they
are propagated to PlayerControl::RunThread() where the
outputs.Cancel() call will be done again.
This commit is contained in:
Max Kellermann 2017-12-28 08:39:48 +01:00
parent e1349ccadc
commit e31abe6d6b
1 changed files with 1 additions and 4 deletions

View File

@ -989,11 +989,8 @@ Player::Run() noexcept
pc.CommandFinished();
while (true) {
if (!ProcessCommand()) {
const ScopeUnlock unlock(pc.mutex);
pc.outputs.Cancel();
if (!ProcessCommand())
break;
}
if (buffering) {
/* buffering at the start of the song - wait