mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	spa: support: loop: do not return early in case of an error
It is expected that `nfds` is non-negative in the vast majority of cases, so hopefully the runtime performance will not be significantly affected by removing the check. This way it is guaranteed that the destroy list is processed.
This commit is contained in:
		
							parent
							
								
									275e23a34d
								
							
						
					
					
						commit
						a4e7042176
					
				
					 1 changed files with 0 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -350,9 +350,6 @@ static int loop_iterate(void *object, int timeout)
 | 
			
		|||
 | 
			
		||||
	spa_loop_control_hook_after(&impl->hooks_list);
 | 
			
		||||
 | 
			
		||||
	if (SPA_UNLIKELY(nfds < 0))
 | 
			
		||||
		return nfds;
 | 
			
		||||
 | 
			
		||||
	/* first we set all the rmasks, then call the callbacks. The reason is that
 | 
			
		||||
	 * some callback might also want to look at other sources it manages and
 | 
			
		||||
	 * can then reset the rmask to suppress the callback */
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue