Merge "Launch NetD in a different thread"

This commit is contained in:
nharold
2017-07-18 17:56:35 +00:00
committed by Gerrit Code Review

View File

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