Skip to content
Commit 1f1e4afa authored by Emil Gydesen's avatar Emil Gydesen Committed by Mahesh Mahadevan
Browse files

Bluetooth: CSIP: Handle disconnects while in procedure



If a device disconnects while we are in a procedure then
get_next_active_instance would return a service instance pointer
with the `conn` set to NULL.

The issue was caused by the set_info being potentially memset
when the device that disconnected was the one that held the
set_info pointer.
The solution is to not use a pointer, but rather a copy of the
set_info, so that the active.set_info value is still valid
after a disconnect.

Since the set_info is not longer a pointer to a specific
set_info from one of the members, the logs have been updated
as well, as the pointer of the active.set_info is useless
for debugging.

Signed-off-by: default avatarEmil Gydesen <emil.gydesen@nordicsemi.no>
parent b710167f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment