commit | df82beec723b409b9c269d8ca6656a6faec14cab | [log] [tgz] |
---|---|---|
author | Remi NGUYEN VAN <reminv@google.com> | Fri Apr 04 13:11:08 2025 +0900 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Mon Apr 07 20:00:49 2025 -0700 |
tree | e3114c9d73ac64bf64049b6529f6d76f00d901ae | |
parent | 6f535a5c7b3456eae21a0f688e8041add0709c09 [diff] |
Ensure PacketHandler is removed from sockets When MdnsMultinetworkSocketClient stops using a socket (when isSocketActive starts returning false), the packet handler should be removed from that socket. The code only removed it from the mSocketPacketHandlers map without clearing it from the socket. This caused packets to be handled potentially many times, affecting performance. Bug: 406623719 Bug: 408324621 Test: atest Flag: EXEMPT bugfix (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:b5fbc0143af3409c5c8c660c3ecb34d4e964efdb) Merged-In: I3d1117a4b847f3b95a01fc8a5997a53655ef608a Change-Id: I3d1117a4b847f3b95a01fc8a5997a53655ef608a