commit | f46e1df10bf2eaab8cd658042d55cc3ae29ea209 | [log] [tgz] |
---|---|---|
author | Yu Shan <shanyu@google.com> | Fri Feb 25 17:09:46 2022 -0800 |
committer | Yu Shan <shanyu@google.com> | Fri Mar 04 14:07:43 2022 -0800 |
tree | 270a301266c2b0ae937fafeddc64ba89495fd620 | |
parent | 4bd6c41dd44e0eaef5466295d256203fcafdbbb6 [diff] |
Clean up resource correctly when client died. Add proper lock to make sure that all resources would be cleaned up for a client if the client died. Also add check and not to allocate resources for an already dead client. Test: atest DefaultVehicleHalTest. Run manually and do not see 'failed to call callback' messages. Bug: 221500501 Change-Id: I1c799a6234017b976e7776537ab91526e785b9b4