mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	jack: handle -ENOENT from the core
This means that we tried to do something on a proxy that was destroyed on the server and we should just ignore the error.
This commit is contained in:
		
							parent
							
								
									4331779e4d
								
							
						
					
					
						commit
						8d5e7749c2
					
				
					 1 changed files with 6 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -1210,6 +1210,11 @@ static void on_error(void *data, uint32_t id, int seq, int res, const char *mess
 | 
			
		|||
			id, seq, res, spa_strerror(res), message);
 | 
			
		||||
 | 
			
		||||
	if (id == PW_ID_CORE) {
 | 
			
		||||
		/* This happens when we did something on a proxy that
 | 
			
		||||
		 * was destroyed on the server already */
 | 
			
		||||
		if (res == -ENOENT)
 | 
			
		||||
			return;
 | 
			
		||||
 | 
			
		||||
		client->last_res = res;
 | 
			
		||||
		if (res == -EPIPE && !client->destroyed) {
 | 
			
		||||
			queue_notify(client, NOTIFY_TYPE_SHUTDOWN,
 | 
			
		||||
| 
						 | 
				
			
			@ -4064,6 +4069,7 @@ server_failed:
 | 
			
		|||
exit_unlock:
 | 
			
		||||
	pw_thread_loop_unlock(client->context.loop);
 | 
			
		||||
exit:
 | 
			
		||||
	pw_log_info("%p: error %d", client, *status);
 | 
			
		||||
	jack_client_close((jack_client_t *) client);
 | 
			
		||||
	return NULL;
 | 
			
		||||
disabled:
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue