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

Commit c721dce3 authored by nharold's avatar nharold Committed by Gerrit Code Review
Browse files

Merge "Launch NetD in a different thread"

parents b793aa8c b0e05085
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 {