mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	context: only set TERMINATED when -EPIPE
Other errors don't cause the connection to terminate.
This commit is contained in:
		
							parent
							
								
									dac60d4e5b
								
							
						
					
					
						commit
						65798ca566
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -822,7 +822,7 @@ static void core_error(void *data, uint32_t id, int seq, int res, const char *me
 | 
			
		|||
			id, seq, res, spa_strerror(res), message);
 | 
			
		||||
 | 
			
		||||
	if (id == PW_ID_CORE) {
 | 
			
		||||
		if (!c->disconnect)
 | 
			
		||||
		if (res == -EPIPE && !c->disconnect)
 | 
			
		||||
			pa_context_fail(c, PA_ERR_CONNECTIONTERMINATED);
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue