Merge "Launch NetD in a different thread" am: 3608598388 am: e18d235c28 am: cd3633fc01

am: fbdd1f3245

Change-Id: I64abc4069121180f873906d6e30035aec139b612
This commit is contained in:
nharold
2017-07-18 22:39:38 +00:00
committed by android-build-merger

View File

@@ -406,17 +406,14 @@ public class IpSecService extends IIpSecService.Stub {
private void connectNativeNetdService() {
// Avoid blocking the system server to do this
Thread t =
new Thread(
new Runnable() {
@Override
public void run() {
synchronized (IpSecService.this) {
NetdService.get(NETD_FETCH_TIMEOUT);
}
}
});
t.run();
new Thread() {
@Override
public void run() {
synchronized (IpSecService.this) {
NetdService.get(NETD_FETCH_TIMEOUT);
}
}
}.start();
}
INetd getNetdInstance() throws RemoteException {