summaryrefslogtreecommitdiffstats
path: root/audio/avdtp.c
diff options
context:
space:
mode:
Diffstat (limited to 'audio/avdtp.c')
-rw-r--r--audio/avdtp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/audio/avdtp.c b/audio/avdtp.c
index 0a17f73e..2f12544a 100644
--- a/audio/avdtp.c
+++ b/audio/avdtp.c
@@ -685,6 +685,8 @@ static void avdtp_sep_set_state(struct avdtp *session,
session->streams = g_slist_remove(session->streams, stream);
if (session->pending_open == stream)
handle_transport_connect(session, -1, 0);
+ if (session->req && session->req->stream == stream)
+ session->req->stream = NULL;
stream_free(stream);
if (session->ref == 1 && !session->streams)
set_disconnect_timer(session);