mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04: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,7 +1097,8 @@ static DBusHandlerResult endpoint_set_configuration(DBusConnection *conn,
|
|||
spa_log_warn(monitor->log, "no device found for transport");
|
||||
return DBUS_HANDLER_RESULT_NOT_YET_HANDLED;
|
||||
}
|
||||
spa_list_append(&transport->device->transport_list, &transport->device_link);
|
||||
if (is_new)
|
||||
spa_list_append(&transport->device->transport_list, &transport->device_link);
|
||||
|
||||
device_connect_profile(transport->device, transport->profile);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue