Memory leak due to no stop for IpNeighborMonitor. am: 8bcf198c67 am: 7d36cdb6dc

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11910263

Change-Id: I8f83396e5ccdf2bfd0cbdb376aa6a61656bf3039
This commit is contained in:
Lorenzo Colitti
2020-06-19 07:02:01 +00:00
committed by Automerger Merge Worker

View File

@@ -1322,6 +1322,7 @@ public class IpServer extends StateMachine {
class UnavailableState extends State {
@Override
public void enter() {
mIpNeighborMonitor.stop();
mLastError = TetheringManager.TETHER_ERROR_NO_ERROR;
sendInterfaceState(STATE_UNAVAILABLE);
}