diff --git a/services/core/java/com/android/server/IpSecService.java b/services/core/java/com/android/server/IpSecService.java index 2f9b8618cb..ac5da9361c 100644 --- a/services/core/java/com/android/server/IpSecService.java +++ b/services/core/java/com/android/server/IpSecService.java @@ -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 {