commit | 900f18e4612454052373a3141efc213187de63cd | [log] [tgz] |
---|---|---|
author | Luke Huang <huangluke@google.com> | Thu Jan 31 16:50:17 2019 +0800 |
committer | Luke Huang <huangluke@google.com> | Wed Apr 03 14:21:52 2019 +0800 |
tree | e979d6a80d9061f018fce48ece6791a5638e151e | |
parent | aee15e050385efc64c9d47f6870dd0b1f4ef4d92 [diff] |
Fix DeathRecipient not work problem for UnsolicitedEventListener linkToDeath of binder only use weak pointer ref for deathRecipient. Hence local variable deathRecipient would destruct immediately after registerUnsolEventListener function done. Use a map to store all deathRecipient. Bug: 129370555 Test: built, flashed, booted system/netd/tests/runtests.sh pass Change-Id: I1829222dc071e237974033559bfbcce72b05d3fb