Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit b5817df8 authored by sangyun's avatar sangyun Committed by Sangyun Yun
Browse files

Fix NoSuchElementException is threw when unlinkToDeath is called

Parameter flags in Binder::linkToDeath must be matched as a pair
with the recipient in unlinkToDeath to be removed from mObituaries
and deleted.
Since each service's cookie list meaningfully starts from 1,
setting the flag to 0 in unlinkToDeath is equivalent to not to
find an existing recipient in mObituaries.
Therefore, for truly unlinking, use the flag set in the linkToDeath
again to unlink it and remove it from the binder.

Bug: 340156301
Test: Basic telephony funcationlity tests
Test: atest FrameworksTelephonyTests
Change-Id: Ib1172bc8cdbfc8d6f42474c8e2adffe3f92af3b3
parent dbb96945
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment