Diff between ba9fda12d26bf4200339da94bc198c6641f98668 and 093d00b47ee4e3544aa80de33e869a8617c4af32
Changed Files
| File | Additions | Deletions | Status |
| profiles/audio/bap.c | +3 | -1 | modified |
Full Patch
diff --git a/profiles/audio/bap.c b/profiles/audio/bap.c
index c279b5b..c530799 100644
--- a/profiles/audio/bap.c
+++ b/profiles/audio/bap.c
@@ -1918,7 +1918,9 @@ static void bap_state(struct bt_bap_stream *stream, uint8_t old_state,
bap_create_io(data, ep, stream, true);
if (!ep->io) {
error("Unable to create io");
- bt_bap_stream_release(stream, NULL, NULL);
+ if (old_state != BT_BAP_STREAM_STATE_RELEASING)
+ bt_bap_stream_release(stream, NULL,
+ NULL);
return;
}