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
This commit is contained in:
Max Kellermann 2008-03-26 10:37:02 +00:00 committed by Eric Wong
parent 7c69161913
commit c6ceceae8a
1 changed files with 2 additions and 3 deletions

View File

@ -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();