[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [orbot/master] fixed issue with network conn on main thread



commit 82deb40dae2e95a74ef26b73f73b6efda662a47d
Author: Nathan Freitas <nathan@xxxxxxxxxxx>
Date:   Sun Feb 26 23:38:34 2012 -0500

    fixed issue with network conn on main thread
---
 src/org/torproject/android/service/TorService.java |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/src/org/torproject/android/service/TorService.java b/src/org/torproject/android/service/TorService.java
index 04e347e..ca803b5 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;
         }



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits