You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When returning false from the CCC match callback the connection is not unreferenced, which leads to it not being cleaned up when disconnecting. It is due to missing bt_conn_unref.
To Reproduce
Register a CCC attribute with a match callback, and return false from it. When trying to send a notification and disconnecting, we can see the connection not being cleaned up.
Expected behavior
Connection should be unreferenced.
Impact
It will prevent the connection from being cleaned-up on disconnect and will eventually prevent new connections if it happens BT_MAX_CONN times.
The text was updated successfully, but these errors were encountered:
Describe the bug
When returning false from the CCC match callback the connection is not unreferenced, which leads to it not being cleaned up when disconnecting. It is due to missing bt_conn_unref.
To Reproduce
Register a CCC attribute with a match callback, and return false from it. When trying to send a notification and disconnecting, we can see the connection not being cleaned up.
Expected behavior
Connection should be unreferenced.
Impact
It will prevent the connection from being cleaned-up on disconnect and will eventually prevent new connections if it happens BT_MAX_CONN times.
The text was updated successfully, but these errors were encountered: