commit | 3391582bc86c060e9e8255858eb952827cc2cfd8 | [log] [tgz] |
---|---|---|
author | Paul Hu <paulhu@google.com> | Wed Mar 15 15:10:20 2023 +0800 |
committer | Cherrypicker Worker <android-build-cherrypicker-worker@google.com> | Wed May 10 02:24:51 2023 +0000 |
tree | b0ab41e69a520869c6ce9dd6eeae8a092c36225a | |
parent | 5572568b817865a153c32756dd8e9041cc2cccd5 [diff] |
Process all responses if the network is null in MdnsServiceTypeClient If the network is null in MdnsServiceTypeClient, it should use MdnsSocketClient for single socket only. So it's expected to process any response from only the socket (network). Move the stopDiscovery outside the listener check loop. Because the stop should only be called once. Add a test to verify the response processing with a non-null network MdnsServiceTypeClient Bug: 265787401 Test: atest FrameworksNetTests (cherry picked from https://android-review.googlesource.com/q/commit:bdf82a2aa0d7447de75fdcca60734936b926e25e) Merged-In: I76965302037f050e0ac3b2cfdbaa5a855e2283c7 Change-Id: I76965302037f050e0ac3b2cfdbaa5a855e2283c7