diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2008-01-31 12:38:14 +0000 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2008-01-31 12:38:14 +0000 |
commit | ad31a843448470c91973a8b4b2a6067a3b3235fc (patch) | |
tree | e05ef1cbdc93ea6568448ee92fc2b7c72ab01ff6 | |
parent | e51de7f6fb5385c9df62842ce9cf92f9fd33f040 (diff) |
Check for client disconnect when discovery completes
-rw-r--r-- | audio/unix.c | 5 |
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; |