From 3698e4610515bf230788d410a158759a016904b9 Mon Sep 17 00:00:00 2001 From: Nathan Freitas Date: Tue, 12 Aug 2014 02:04:10 -0400 Subject: [PATCH] create new thread for connecting to existing process don't rely on executor yet, as we need it to happen fast --- src/org/torproject/android/service/TorService.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/org/torproject/android/service/TorService.java b/src/org/torproject/android/service/TorService.java index 46d37a13..f22d8371 100644 --- a/src/org/torproject/android/service/TorService.java +++ b/src/org/torproject/android/service/TorService.java @@ -575,7 +575,7 @@ public class TorService extends Service implements TorServiceConstants, TorConst logNotice("There was an error installing Orbot binaries"); } - mExecutor.execute(new Runnable () + new Thread(new Runnable () { public void run () { @@ -589,7 +589,7 @@ public class TorService extends Service implements TorServiceConstants, TorConst } } - }); + }).start(); } @@ -651,7 +651,6 @@ public class TorService extends Service implements TorServiceConstants, TorConst String transPort = prefs.getString("pref_transport", TorServiceConstants.TOR_TRANSPROXY_PORT_DEFAULT+""); String dnsPort = prefs.getString("pref_dnsport", TorServiceConstants.TOR_DNS_PORT_DEFAULT+""); - if (mTransProxyTethering) { extraLines.append("TransListenAddress 0.0.0.0").append('\n');