Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1a029338 authored by nharold's avatar nharold Committed by android-build-merger
Browse files

Merge "Launch NetD in a different thread" am: c721dce3 am: 709f3c1d am: cd3633fc

am: d122f4e8

Change-Id: I64abc4069121180f873906d6e30035aec139b612
parents e36bdbe6 d122f4e8
Loading
Loading
Loading
Loading
+8 −11
Original line number Diff line number Diff line
@@ -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() {
        new Thread() {
            @Override
            public void run() {
                synchronized (IpSecService.this) {
                    NetdService.get(NETD_FETCH_TIMEOUT);
                }
            }
                        });
        t.run();
        }.start();
    }

    INetd getNetdInstance() throws RemoteException {