mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-12-29 13:53:35 +08:00
android/hog: Fix not resetting properly on detach
This commit is contained in:
parent
714434769a
commit
31fa4c92d1
@ -1007,7 +1007,10 @@ void bt_hog_detach(struct bt_hog *hog)
|
||||
for (l = hog->reports; l; l = l->next) {
|
||||
struct report *r = l->data;
|
||||
|
||||
g_attrib_unregister(hog->attrib, r->notifyid);
|
||||
if (r->notifyid > 0) {
|
||||
g_attrib_unregister(hog->attrib, r->notifyid);
|
||||
r->notifyid = 0;
|
||||
}
|
||||
}
|
||||
|
||||
if (hog->scpp)
|
||||
|
Loading…
Reference in New Issue
Block a user