Diff between 0981bf7ebb76ab9fe45777b5ee3bdcc59ce3b992 and b7f37a75190924e321e8e384f0b08e9dc44f1e27
Changed Files
| File | Additions | Deletions | Status |
| profiles/audio/source.c | +2 | -2 | modified |
Full Patch
diff --git a/profiles/audio/source.c b/profiles/audio/source.c
index cbfa860..da312d4 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) {