From 82deb40dae2e95a74ef26b73f73b6efda662a47d Mon Sep 17 00:00:00 2001 From: Nathan Freitas Date: Sun, 26 Feb 2012 23:38:34 -0500 Subject: [PATCH] fixed issue with network conn on main thread --- src/org/torproject/android/service/TorService.java | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/org/torproject/android/service/TorService.java b/src/org/torproject/android/service/TorService.java index 04e347e3..ca803b5b 100644 --- a/src/org/torproject/android/service/TorService.java +++ b/src/org/torproject/android/service/TorService.java @@ -1127,8 +1127,15 @@ public class TorService extends Service implements TorServiceConstants, TorConst _torInstance = this; initTorPaths(); - findExistingProc (); - + new Thread () + { + + public void run () + { + findExistingProc (); + } + }.start(); + if (ITorService.class.getName().equals(intent.getAction())) { return mBinder; }