summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--audio/unix.c5
1 files changed, 5 insertions, 0 deletions
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;