From acc4dfbfff2d7b2ffa97010738e530b94241bf46 Mon Sep 17 00:00:00 2001 From: Szymon Janc Date: Thu, 23 Jan 2014 16:22:28 +0100 Subject: [PATCH] android/hal-audio: Don't try to unregister endpoints on handler exit audio_sk is already closed at this point so just cleanup any leftovers in enpoints states. --- android/hal-audio.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/android/hal-audio.c b/android/hal-audio.c index 52f8894d6..610418354 100644 --- a/android/hal-audio.c +++ b/android/hal-audio.c @@ -1378,7 +1378,8 @@ static void *ipc_handler(void *data) } } - unregister_endpoints(); + /* audio_sk is closed at this point, just cleanup endpoints states */ + memset(audio_endpoints, 0, sizeof(audio_endpoints)); info("Closing Audio IPC thread"); return NULL; -- 2.47.3