Merge "Launch NetD in a different thread"
am: 3608598388
Change-Id: I0edeac83cc31b7ff9b264c35e225707ebb8418f2
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user