commit | be0a5b6e2c204446274248e1fa058e30f46b4b71 | [log] [tgz] |
---|---|---|
author | Phil Burk <philburk@google.com> | Thu Oct 12 15:56:00 2017 -0700 |
committer | Phil Burk <philburk@google.com> | Tue Oct 17 12:15:07 2017 -0700 |
tree | ef61e6bc874fd89e0f2e5b60ffa96555a0656000 | |
parent | 7de1920b41a7c5a6aa466dcd4fffc936193328b1 [diff] |
aaudio service: prevent disconnected endpoints from being used Also close the internal stream used by AAudioServiceEndpointShared. This prevents a resource leak caused by an app not closing a disconnected stream. It also prevents an app from reopening a device that was just disconnected. Bug: 67664976 Test: test_bad_disconnect.cpp should get new device ID after disconnect Change-Id: I9a234b5704d62af788064fdd352b63181ad7e559