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

Commit 69f364ae authored by Jeff Sharkey's avatar Jeff Sharkey Committed by Android (Google) Code Review
Browse files

Merge "Update internal state when iface is removed."

parents f751210b 89b8a216
Loading
Loading
Loading
Loading
+5 −0
Original line number Original line Diff line number Diff line
@@ -238,6 +238,11 @@ public class NetworkManagementService extends INetworkManagementService.Stub
     * Notify our observers of an interface removal.
     * Notify our observers of an interface removal.
     */
     */
    private void notifyInterfaceRemoved(String iface) {
    private void notifyInterfaceRemoved(String iface) {
        // netd already clears out quota and alerts for removed ifaces; update
        // our sanity-checking state.
        mActiveAlertIfaces.remove(iface);
        mActiveQuotaIfaces.remove(iface);

        for (INetworkManagementEventObserver obs : mObservers) {
        for (INetworkManagementEventObserver obs : mObservers) {
            try {
            try {
                obs.interfaceRemoved(iface);
                obs.interfaceRemoved(iface);