Merge "Launch NetD in a different thread" am: 3608598388 am: e18d235c28
am: cd3633fc01 Change-Id: Ifaaa918e1ade21609ef1615d9315c44d89a23a6d
This commit is contained in:
@@ -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(
|
|
||||||
new Runnable() {
|
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
synchronized (IpSecService.this) {
|
synchronized (IpSecService.this) {
|
||||||
NetdService.get(NETD_FETCH_TIMEOUT);
|
NetdService.get(NETD_FETCH_TIMEOUT);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
}.start();
|
||||||
t.run();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
INetd getNetdInstance() throws RemoteException {
|
INetd getNetdInstance() throws RemoteException {
|
||||||
|
|||||||
Reference in New Issue
Block a user