mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	module-protocol-simple: do not cleanup client when send returns EAGAIN or EWOULDBLOCK
This commit is contained in:
		
							parent
							
								
									fc6f8e3448
								
							
						
					
					
						commit
						97777f173a
					
				
					 1 changed files with 3 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -305,10 +305,11 @@ static void capture_process(void *data)
 | 
			
		|||
		if (res < 0) {
 | 
			
		||||
			if (errno == EINTR)
 | 
			
		||||
				continue;
 | 
			
		||||
			if (errno != EAGAIN && errno != EWOULDBLOCK)
 | 
			
		||||
			if (errno != EAGAIN && errno != EWOULDBLOCK) {
 | 
			
		||||
				pw_log_warn("%p: client:%p [%s] send error %d: %m", impl,
 | 
			
		||||
						client, client->name, res);
 | 
			
		||||
			client_cleanup(client);
 | 
			
		||||
				client_cleanup(client);
 | 
			
		||||
			}
 | 
			
		||||
			break;
 | 
			
		||||
		}
 | 
			
		||||
		offset += res;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue