summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2007-09-17 14:23:26 +0000
committerJohan Hedberg <johan.hedberg@nokia.com>2007-09-17 14:23:26 +0000
commit5dc5142303d645d4abfbcf197f352ae7ca4a3f9a (patch)
tree68455c7f51c045168da678f12c10d033c675a1ef /audio
parentcf258cad55202b81faa902b7559dad2ec07d8ad1 (diff)
Clear pending request stream reference if stream goes away (e.g. media transpor
connection dies) before the request is replied to.
Diffstat (limited to 'audio')
-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);