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 52f8894..6104183 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; -- 1.8.3.2 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html