Skip to content

Commit 64adf0b

Browse files
ThalleyMaureenHelm
authored andcommitted
Bluetooth: BAP: Add log of err in bt_bap_stream_detach
We can't really do anything about it if it fails, so we simply log the value. Signed-off-by: Emil Gydesen <[email protected]>
1 parent fd3e334 commit 64adf0b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

subsys/bluetooth/audio/bap_stream.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,11 @@ void bt_bap_stream_detach(struct bt_bap_stream *stream)
406406
stream->ep = NULL;
407407

408408
if (!is_broadcast) {
409-
bt_bap_stream_disconnect(stream);
409+
const int err = bt_bap_stream_disconnect(stream);
410+
411+
if (err != 0) {
412+
LOG_DBG("Failed to disconnect stream %p: %d", stream, err);
413+
}
410414
}
411415
}
412416

0 commit comments

Comments
 (0)