bluez5: release transports on profile change

SCO transports have timer-delayed release, but they need to be released
immediately when changing profiles to close connections before switching
to A2DP.
This commit is contained in:
Pauli Virtanen 2021-03-08 23:39:01 +02:00
parent 6fd870a5f0
commit 511bafb436
3 changed files with 25 additions and 0 deletions

View file

@ -270,6 +270,8 @@ static int set_profile(struct impl *this, uint32_t profile, const struct a2dp_co
emit_remove_nodes(this);
spa_bt_device_release_transports(this->bt_dev);
this->profile = profile;
this->selected_a2dp_codec = a2dp_codec;