diff options
| author | Paul Hu <paulhu@google.com> | 2022-06-01 20:03:35 +0800 |
|---|---|---|
| committer | Cherrypicker Worker <android-build-cherrypicker-worker@google.com> | 2022-06-02 05:45:18 +0000 |
| commit | dae10afdc7abc7d93dca8c7f5c301bb023d797c3 (patch) | |
| tree | c671bede20727fc5894696d665a46d9587cf047d /server/InterfaceControllerTest.cpp | |
| parent | f7267cfcfc7db62b8365fcff621403c0dadcfd67 (diff) | |
Fix unregistering listener issue
Unregistering listener on MDnsEventReporter would fail because
the bringing listener is a pointer which is not existed in the
set. So compare the binder which get from listener to find out
the real listener to be removed.
Refacotr the code to store the death recipient in the set
instead. Because we need to unlink the death recipient when
unregistering listener but we do not save the death recipient
before.
Bug: 234107254
Test: atest CtsNetTestCases
cd system/netd & atest
Change-Id: Ic3bd793ba1d297188700b18b39f380cb7cc43f41
(cherry picked from commit e5ead45a046a920466a807630ccbc382eedc9b28)
Merged-In: Ic3bd793ba1d297188700b18b39f380cb7cc43f41
Diffstat (limited to 'server/InterfaceControllerTest.cpp')
0 files changed, 0 insertions, 0 deletions
