OSDN Git Service

android/hal-audio: Don't try to unregister endpoints on handler exit
authorSzymon Janc <szymon.janc@tieto.com>
Thu, 23 Jan 2014 15:22:28 +0000 (16:22 +0100)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Thu, 23 Jan 2014 17:56:35 +0000 (19:56 +0200)
audio_sk is already closed at this point so just cleanup any leftovers
in enpoints states.

android/hal-audio.c

index 52f8894..6104183 100644 (file)
@@ -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;