Merge "Memory leak due to no stop for IpNeighborMonitor." am: 10b6226702

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

Change-Id: I8723fa07bdbf067940d1fa0b27b13cd5e39289f6
This commit is contained in:
Lorenzo Colitti
2020-06-18 16:18:46 +00:00
committed by Automerger Merge Worker

View File

@@ -1321,6 +1321,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);
}