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
					Max Kellermann
				
			
				
					committed by
					
						 Eric Wong
						Eric Wong
					
				
			
			
				
	
			
			
			 Eric Wong
						Eric Wong
					
				
			
						parent
						
							7c69161913
						
					
				
				
					commit
					c6ceceae8a
				
			| @@ -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(); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user