diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2023-03-13 15:51:48 -0700 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2023-03-14 12:33:06 -0700 |
commit | 605ee768b789602f59f298423dfbad780deeeb8c (patch) | |
tree | 2178c85c43c763d0962b7789a65a7e7eb9bc8817 /src/shared | |
parent | 932b90f6c33e8f428bbfd1d761ff966e7d258c7f (diff) | |
download | bluez-605ee768b789602f59f298423dfbad780deeeb8c.tar.gz |
shared/csip: 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/csip.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/shared/csip.c b/src/shared/csip.c index ff2047a4a..094f448a3 100644 --- a/src/shared/csip.c +++ b/src/shared/csip.c @@ -122,6 +122,8 @@ void bt_csip_detach(struct bt_csip *csip) if (!queue_remove(sessions, csip)) return; + bt_gatt_client_idle_unregister(csip->client, csip->idle_id); + bt_gatt_client_unref(csip->client); csip->client = NULL; |