create new thread for connecting to existing process

don't rely on executor yet, as we need it to happen fast
This commit is contained in:
Nathan Freitas 2014-08-12 02:04:10 -04:00
parent ea37b44fa3
commit 3698e46105
1 changed files with 2 additions and 3 deletions

View File

@ -575,7 +575,7 @@ public class TorService extends Service implements TorServiceConstants, TorConst
logNotice("There was an error installing Orbot binaries"); logNotice("There was an error installing Orbot binaries");
} }
mExecutor.execute(new Runnable () new Thread(new Runnable ()
{ {
public void run () 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 transPort = prefs.getString("pref_transport", TorServiceConstants.TOR_TRANSPROXY_PORT_DEFAULT+"");
String dnsPort = prefs.getString("pref_dnsport", TorServiceConstants.TOR_DNS_PORT_DEFAULT+""); String dnsPort = prefs.getString("pref_dnsport", TorServiceConstants.TOR_DNS_PORT_DEFAULT+"");
if (mTransProxyTethering) if (mTransProxyTethering)
{ {
extraLines.append("TransListenAddress 0.0.0.0").append('\n'); extraLines.append("TransListenAddress 0.0.0.0").append('\n');