[tor-commits] [orbot/master] create new thread for connecting to existing process
n8fr8 at torproject.org
n8fr8 at torproject.org
Thu Aug 21 13:50:51 UTC 2014
commit 3698e4610515bf230788d410a158759a016904b9
Author: Nathan Freitas <nathan at freitas.net>
Date: Tue Aug 12 02:04:10 2014 -0400
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 46d37a1..f22d837 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');
More information about the tor-commits
mailing list