From c6ceceae8a7f8b592c63086daa8f2269fb71ca08 Mon Sep 17 00:00:00 2001
From: Max Kellermann <max@duempel.org>
Date: Wed, 26 Mar 2008 10:37:02 +0000
Subject: moved handlePendingSignals() check into while() condition

For code unification: for me, it looks ugly to do a break in the
command in a while() block.  This belongs into the while condition.

git-svn-id: https://svn.musicpd.org/mpd/trunk@7193 09075e82-0dd4-0310-85a5-a0d7c8717e4f
---
 src/main.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

(limited to 'src')

diff --git a/src/main.c b/src/main.c
index b92ef6abd..671363b97 100644
--- a/src/main.c
+++ b/src/main.c
@@ -431,9 +431,8 @@ int main(int argc, char *argv[])
 	openVolumeDevice();
 	read_state_file();
 
-	while (COMMAND_RETURN_KILL != doIOForInterfaces()) {
-		if (COMMAND_RETURN_KILL == handlePendingSignals())
-			break;
+	while (COMMAND_RETURN_KILL != doIOForInterfaces() &&
+	       COMMAND_RETURN_KILL != handlePendingSignals()) {
 		syncPlayerAndPlaylist();
 		closeOldInterfaces();
 		readDirectoryDBIfUpdateIsFinished();
-- 
cgit v1.2.3