commit | 00b540e1443acbaa5cda1a263106ace24339f8ac | [log] [tgz] |
---|---|---|
author | Your Name <jacobhobbie@google.com> | Mon Feb 28 01:08:12 2022 +0000 |
committer | Your Name <jacobhobbie@google.com> | Mon Feb 28 01:10:57 2022 +0000 |
tree | 8b22a0129a64a5e811a91be04bca72d1c779b013 | |
parent | d0cb324a9cae69ebef63c24a8d173b9aae8256d7 [diff] |
Unregister receiver when destroying TrustAgentWrapper. Make sure to unregister the receiver when TrustAgentWrapper gets detroyed. This will prevent over registering for the receiver and a potential crash if too many recievers are created. The unregistering and registering of this receiver now take place in the same location as the other receiver in the class. Fixes: 221506550 Test: Trivial Change-Id: Icfd12949d9edb2fa6fbb052db35c16f950328c9a