Diff between 17b55a1f908d7c0e534d169c8e135c2165cd656d and 496dd38b112221a7cbe1907d7768d8caa64d2326

Changed Files

File Additions Deletions Status
android/a2dp.c +7 -0 modified

Full Patch

diff --git a/android/a2dp.c b/android/a2dp.c
index 4c6ab18..bef037d 100644
--- a/android/a2dp.c
+++ b/android/a2dp.c
@@ -1513,6 +1513,7 @@ static gboolean audio_retry_register(void *data)
 
 static void audio_disconnected(void *data)
 {
+	GSList *l;
 	bool restart;
 
 	DBG("");
@@ -1524,6 +1525,12 @@ static void audio_disconnected(void *data)
 
 	bt_audio_unregister();
 
+	for (l = devices; l; l = g_slist_next(l)) {
+		struct a2dp_device *dev = l->data;
+
+		avdtp_shutdown(dev->session);
+	}
+
 	if (!restart)
 		return;