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

Commit 415f523f authored by Chalard Jean's avatar Chalard Jean
Browse files

Address leftover comments on aosp/894233

Bug: 129510344
Test: m, boots, wifi connects, resolves DNS
Change-Id: Idf24f42a86bbfcc89e3ea8cf50d1b705d72ac613
parent 130b5bf1
Loading
Loading
Loading
Loading
+2 −8
Original line number Diff line number Diff line
@@ -1769,14 +1769,8 @@ public class ConnectivityService extends IConnectivityManager.Stub
            // callback from each caller type. Need to re-factor NetdEventListenerService to allow
            // multiple NetworkMonitor registrants.
            if (nai != null && nai.satisfies(mDefaultRequest)) {
                final long token = Binder.clearCallingIdentity();
                try {
                    nai.networkMonitor().notifyDnsResponse(returnCode);
                } catch (RemoteException e) {
                    e.rethrowFromSystemServer();
                } finally {
                    Binder.restoreCallingIdentity(token);
                }
                Binder.withCleanCallingIdentity(() ->
                        nai.networkMonitor().notifyDnsResponse(returnCode));
            }
        }