From b7f37a75190924e321e8e384f0b08e9dc44f1e27 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Fri, 14 Dec 2012 12:46:14 +0200 Subject: [PATCH] audio: Fix using the right procedure id when cleaning up --- profiles/audio/source.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/profiles/audio/source.c b/profiles/audio/source.c index cbfa860d7..da312d4ea 100644 --- a/profiles/audio/source.c +++ b/profiles/audio/source.c @@ -350,8 +350,8 @@ static void source_free(struct audio_device *dev) if (source->connect_id > 0) { audio_source_connected(dev->btd_dev, -ECANCELED); - a2dp_cancel(dev, source->disconnect_id); - source->disconnect_id = 0; + a2dp_cancel(dev, source->connect_id); + source->connect_id = 0; } if (source->disconnect_id > 0) { -- 2.11.0