Diff between 013b3431c58d81e9e01dac7e8a5d088e357326a3 and 8a304f7fd9607850052fc6ac9c13c63c9d36205a
Changed Files
| File | Additions | Deletions | Status |
| src/shared/bap.c | +6 | -0 | modified |
Full Patch
diff --git a/src/shared/bap.c b/src/shared/bap.c
index c0f0c4f..9b73952 100644
--- a/src/shared/bap.c
+++ b/src/shared/bap.c
@@ -1357,6 +1357,12 @@ static void bap_ucast_detach(struct bt_bap_stream *stream)
bap_stream_clear_cfm(stream);
ep->stream = NULL;
+
+ if (!stream->client) {
+ ep->state = BT_ASCS_ASE_STATE_IDLE;
+ ep->old_state = BT_ASCS_ASE_STATE_IDLE;
+ }
+
bt_bap_stream_unref(stream);
}