Commit c6ceceae authored by Max Kellermann's avatar Max Kellermann Committed by Eric Wong

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
parent 7c691619
...@@ -431,9 +431,8 @@ int main(int argc, char *argv[]) ...@@ -431,9 +431,8 @@ int main(int argc, char *argv[])
openVolumeDevice(); openVolumeDevice();
read_state_file(); read_state_file();
while (COMMAND_RETURN_KILL != doIOForInterfaces()) { while (COMMAND_RETURN_KILL != doIOForInterfaces() &&
if (COMMAND_RETURN_KILL == handlePendingSignals()) COMMAND_RETURN_KILL != handlePendingSignals()) {
break;
syncPlayerAndPlaylist(); syncPlayerAndPlaylist();
closeOldInterfaces(); closeOldInterfaces();
readDirectoryDBIfUpdateIsFinished(); readDirectoryDBIfUpdateIsFinished();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment