From ad31a843448470c91973a8b4b2a6067a3b3235fc Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Thu, 31 Jan 2008 12:38:14 +0000 Subject: Check for client disconnect when discovery completes --- audio/unix.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/audio/unix.c b/audio/unix.c index f3c6e6aa..b45ab9a5 100644 --- a/audio/unix.c +++ b/audio/unix.c @@ -344,6 +344,11 @@ static void a2dp_discovery_complete(struct avdtp *session, GSList *seps, struct mpeg_codec_cap *mpeg_cap = NULL; GSList *l; + if (!g_slist_find(clients, client)) { + debug("Client disconnected during discovery"); + return; + } + if (err) goto failed; -- cgit