commit | 8e2255ad97be8c5665b6bc8973d37c241fb5814b | [log] [tgz] |
---|---|---|
author | Phil Burk <philburk@google.com> | Fri Jun 05 09:58:26 2020 -0700 |
committer | Phil Burk <philburk@google.com> | Fri Jun 05 13:08:09 2020 -0700 |
tree | 1131a333ad55726c9783e420d3a57f35bca18ad9 | |
parent | 6d5a5c10a5b9389cd84b5a10d5814e65eeb004aa [diff] |
aaudio: fix race when disconnecting When disconnecting more than one stream, and the apps reopen the streams, there was a race condition that resulted in the first app getting a Legacy stream instead of an MMAP stream. That is because it was disconnected before the other streams had stopped. Now we run the stop loop before the disconnect loop to prevent the race. Bug: 158316262 Test: test_steal_exclusive -r0 -d0 -s Change-Id: Ib8efde9c2f94f6ab1ba3475d88b45d373cc8d3bb