Skip to content
Commit 4a977463 authored by Emil Gydesen's avatar Emil Gydesen Committed by Johan Hedberg
Browse files

Bluetooth: Host: Guard set state in conn_destroy



If bt_conn_set_state(conn, BT_CONN_DISCONNECTED) is called
while the connection is already disconnected, this triggers
a warning. This is likely to happen when bt_conn_cleanup_all
is called as part of bt_disable.

Added the state check to avoid unnecessary warnings in the log.

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