Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c37b38e3 authored by Xiao Ma's avatar Xiao Ma Committed by Automerger Merge Worker
Browse files

Reset interface index before IpClientLinkObserver shuts down. am: 663e1564

Original change: https://android-review.googlesource.com/c/platform/packages/modules/NetworkStack/+/1836113

Change-Id: I5dc9dc080af8593ee8efbf0b61c270d48ea77af8
parents 0547467e 663e1564
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -906,6 +906,7 @@ public class IpClient extends StateMachine {

    private void stopStateMachineUpdaters() {
        mObserverRegistry.unregisterObserver(mLinkObserver);
        mLinkObserver.clearInterfaceParams();
        mLinkObserver.shutdown();
    }

@@ -1969,7 +1970,6 @@ public class IpClient extends StateMachine {
            mHasDisabledIpv6OrAcceptRaOnProvLoss = false;
            mGratuitousNaTargetAddresses.clear();

            mLinkObserver.clearInterfaceParams();
            resetLinkProperties();
            if (mStartTimeMillis > 0) {
                // Completed a life-cycle; send a final empty LinkProperties