bluez5: reset timers when reassigning followers

Driver timeouts need to be started/stopped when we switch from follower
to driver or vice versa.

The BT sources fail to do this, so fix it. Sinks already do it right.
This commit is contained in:
Pauli Virtanen 2022-10-19 18:56:09 +03:00 committed by Wim Taymans
parent c0fc29494f
commit d388c206ef
2 changed files with 2 additions and 0 deletions

View file

@ -276,6 +276,7 @@ static int do_reassign_follower(struct spa_loop *loop,
struct impl *this = user_data;
struct port *port = &this->port;
set_timers(this);
spa_bt_decode_buffer_recover(&port->buffer);
return 0;
}