From a190db0873dbe8fc6d6ed4b0313bde789d877c0c Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 21 Sep 2018 18:58:38 +0200 Subject: [PATCH] player/Thread: simplify loop condition --- src/player/Thread.cxx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/player/Thread.cxx b/src/player/Thread.cxx index 73b90d2a3..14f8aa08e 100644 --- a/src/player/Thread.cxx +++ b/src/player/Thread.cxx @@ -937,10 +937,7 @@ Player::Run() noexcept pc.CommandFinished(); - while (true) { - if (!ProcessCommand()) - break; - + while (ProcessCommand()) { if (buffering) { /* buffering at the start of the song - wait until the buffer is large enough, to