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);
 | 
								id, seq, res, spa_strerror(res), message);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (id == PW_ID_CORE) {
 | 
						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;
 | 
							client->last_res = res;
 | 
				
			||||||
		if (res == -EPIPE && !client->destroyed) {
 | 
							if (res == -EPIPE && !client->destroyed) {
 | 
				
			||||||
			queue_notify(client, NOTIFY_TYPE_SHUTDOWN,
 | 
								queue_notify(client, NOTIFY_TYPE_SHUTDOWN,
 | 
				
			||||||
| 
						 | 
					@ -4064,6 +4069,7 @@ server_failed:
 | 
				
			||||||
exit_unlock:
 | 
					exit_unlock:
 | 
				
			||||||
	pw_thread_loop_unlock(client->context.loop);
 | 
						pw_thread_loop_unlock(client->context.loop);
 | 
				
			||||||
exit:
 | 
					exit:
 | 
				
			||||||
 | 
						pw_log_info("%p: error %d", client, *status);
 | 
				
			||||||
	jack_client_close((jack_client_t *) client);
 | 
						jack_client_close((jack_client_t *) client);
 | 
				
			||||||
	return NULL;
 | 
						return NULL;
 | 
				
			||||||
disabled:
 | 
					disabled:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue