Unverified Commit 8213c8dc authored by Matthew Finkel's avatar Matthew Finkel
Browse files

Bug 40003: Setup Tor in the main thread

parent 68b91198
......@@ -234,13 +234,10 @@ public final class TorService extends Service implements TorServiceConstants, Or
mActionBroadcastReceiver = new ActionBroadcastReceiver();
registerReceiver(mActionBroadcastReceiver, new IntentFilter(CMD_NEWNYM));
new Thread(new Runnable() {
public void run() {
if (setupTor()) {
notifyIfConnectedToTorNetwork();
}
}
}).start();
if (setupTor()) {
mEventBroadcaster.broadcastNotice("Preparing Tor, please wait...");
notifyIfConnectedToTorNetwork();
}
Log.i("TorService", "onCreate end");
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment