diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2023-03-13 15:51:47 -0700 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2023-03-14 12:33:06 -0700 |
commit | 932b90f6c33e8f428bbfd1d761ff966e7d258c7f (patch) | |
tree | 915f61f1d9259cd0555c88fe8bae9cf60ec35235 /src/shared | |
parent | 40576ac1badffb151ada76a90b89e85aa2ed9934 (diff) | |
download | bluez-932b90f6c33e8f428bbfd1d761ff966e7d258c7f.tar.gz |
shared/bap: Fix not unregistering idle callback on detach
This make sure idle callback is unregistered before bt_gatt_client is
unref.
Diffstat (limited to 'src/shared')
-rw-r--r-- | src/shared/bap.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/shared/bap.c b/src/shared/bap.c index 952b7be26..7a53fbc3e 100644 --- a/src/shared/bap.c +++ b/src/shared/bap.c @@ -3818,6 +3818,8 @@ void bt_bap_detach(struct bt_bap *bap) bap->req = NULL; } + bt_gatt_client_idle_unregister(bap->client, bap->idle_id); + /* Cancel queued requests */ queue_remove_all(bap->reqs, NULL, NULL, bap_req_detach); |