diff options
author | Max Kellermann <max@duempel.org> | 2008-03-26 10:37:02 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2008-03-26 10:37:02 +0000 |
commit | c6ceceae8a7f8b592c63086daa8f2269fb71ca08 (patch) | |
tree | cf20665d1e25bebbe9be9b492fbe43fc007a0f90 /src | |
parent | 7c69161913273d3a724f3798335d367c43247feb (diff) | |
download | mpd-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
Diffstat (limited to '')
-rw-r--r-- | src/main.c | 5 |
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(); |