Diff between e32d55d40aa69df6f15f8f234d9c04e9064fb987 and 62526c7106562860c6a4d79ca67e0dfc47f2e936

Changed Files

File Additions Deletions Status
android/health.c +1 -4 modified

Full Patch

diff --git a/android/health.c b/android/health.c
index 2ea10a2..c8af90e 100644
--- a/android/health.c
+++ b/android/health.c
@@ -1880,10 +1880,7 @@ static void search_cb(sdp_list_t *recs, int err, gpointer data)
 	return;
 
 fail:
-	send_channel_state_notify(channel, HAL_HEALTH_CHANNEL_DESTROYED, -1);
-
-	queue_remove(channel->dev->channels, channel);
-	free_health_channel(channel);
+	destroy_channel(channel);
 }
 
 static int connect_mcl(struct health_channel *channel)