Address leftover comments on aosp/894233

Bug: 129510344
Test: m, boots, wifi connects, resolves DNS
Change-Id: Idf24f42a86bbfcc89e3ea8cf50d1b705d72ac613
This commit is contained in:
Chalard Jean
2019-04-08 20:28:44 +09:00
parent eade5d227d
commit ce140af98c

View File

@@ -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));
}
}