mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	bluez5: don't add transport twice in the device transports list
The transport is already added in profile_new_connection(), unless is_new is TRUE Apart from being wrong, adding the same node twice in a list also causes spa_list_foreach() to loop forever...
This commit is contained in:
		
							parent
							
								
									b71efadb7a
								
							
						
					
					
						commit
						da9d17e73e
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
					@ -1097,6 +1097,7 @@ static DBusHandlerResult endpoint_set_configuration(DBusConnection *conn,
 | 
				
			||||||
		spa_log_warn(monitor->log, "no device found for transport");
 | 
							spa_log_warn(monitor->log, "no device found for transport");
 | 
				
			||||||
		return DBUS_HANDLER_RESULT_NOT_YET_HANDLED;
 | 
							return DBUS_HANDLER_RESULT_NOT_YET_HANDLED;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
						if (is_new)
 | 
				
			||||||
		spa_list_append(&transport->device->transport_list, &transport->device_link);
 | 
							spa_list_append(&transport->device->transport_list, &transport->device_link);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	device_connect_profile(transport->device, transport->profile);
 | 
						device_connect_profile(transport->device, transport->profile);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue