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

Commit 709f3c1d authored by nharold's avatar nharold Committed by android-build-merger
Browse files

Merge "Launch NetD in a different thread"

am: c721dce3

Change-Id: I0edeac83cc31b7ff9b264c35e225707ebb8418f2
parents 3ed10913 c721dce3
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 {