commit | 13d3d83b02506c73f921d825036b66f855d9647e | [log] [tgz] |
---|---|---|
author | Phil Burk <philburk@google.com> | Mon Jun 10 14:36:48 2019 -0700 |
committer | Phil Burk <philburk@google.com> | Thu Jun 13 13:11:17 2019 -0700 |
tree | 5a1042879707caae6bf42de2c0810eaae24a7b72 | |
parent | e81a326d90dfce1249917b796f69b48fe1c59971 [diff] |
aaudio: fix STOP hang by unlocking around join() Unlock and lock around the join() because the callback thread that we are joining may be blocked by the lock. Check for DISCONNECTED state so the error callback is also joined correctly. Remove unnecessary waitForStateChange that could cause a timeout delay on DISCONNECT. Bug: 134963902 Test: test_stop_hang (see bug report) Change-Id: I5080fa655da35b3221234a2bcafb6ccd71d3ca27