mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	
							parent
							
								
									492caf4456
								
							
						
					
					
						commit
						751f9a9ea0
					
				
					 2 changed files with 4 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -288,6 +288,7 @@ static DBusHandlerResult filter_message (DBusConnection *connection,
 | 
			
		|||
 | 
			
		||||
	if (dbus_message_is_signal(message, DBUS_INTERFACE_LOCAL, "Disconnected")) {
 | 
			
		||||
		spa_log_debug(impl->log, "dbus connection %p disconnected", this);
 | 
			
		||||
		if (this->conn)
 | 
			
		||||
			dbus_connection_unref(this->conn);
 | 
			
		||||
		this->conn = NULL;
 | 
			
		||||
		connection_emit_disconnected(this);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -289,6 +289,7 @@ static void session_destroy(void *data)
 | 
			
		|||
static void session_dbus_disconnected(void *data)
 | 
			
		||||
{
 | 
			
		||||
	struct impl *impl = data;
 | 
			
		||||
	if (impl->bus)
 | 
			
		||||
		dbus_connection_unref(impl->bus);
 | 
			
		||||
	impl->bus = NULL;
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue