commit | 676768272f84bc3fef9068b6286b6f38cb1e8962 | [log] [tgz] |
---|---|---|
author | Marie Janssen <jamuraa@google.com> | Fri Jun 16 08:57:16 2017 -0700 |
committer | Marie Janssen <jamuraa@google.com> | Tue Jun 20 12:21:25 2017 -0700 |
tree | b474675d3a0daa9ee39207f35262519e17f93e03 | |
parent | d5b2445ec7ff3809c1c90a9b20784a6a861a037c [diff] |
AVRCP: Prevent multithread issues in cleanup When cleaning up the object in doQuit it was possible to have multiple threads updating at once, causing NullPointerExceptions in some cases. Synchronize the startup and shutdown of the Avrcp object to prevent this. Test: toggle bluetooth rapidly Bug: 62676895 Change-Id: I2618c7d7b21acb1f95cb67366d469da2fa88d4a4 (cherry picked from commit 9a5f80a6528d76153a7e97821f114f3370df89a5)