aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-03-26 10:37:02 +0000
committerEric Wong <normalperson@yhbt.net>2008-03-26 10:37:02 +0000
commitc6ceceae8a7f8b592c63086daa8f2269fb71ca08 (patch)
treecf20665d1e25bebbe9be9b492fbe43fc007a0f90
parent7c69161913273d3a724f3798335d367c43247feb (diff)
downloadmpd-c6ceceae8a7f8b592c63086daa8f2269fb71ca08.tar.gz
mpd-c6ceceae8a7f8b592c63086daa8f2269fb71ca08.tar.xz
mpd-c6ceceae8a7f8b592c63086daa8f2269fb71ca08.zip
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
-rw-r--r--src/main.c5
1 files changed, 2 insertions, 3 deletions
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();