From e206a241ab5a4c95d0bbbc4d93826343e7117c5b Mon Sep 17 00:00:00 2001 From: Nathan Freitas Date: Mon, 9 Jan 2012 00:23:23 -0500 Subject: [PATCH] only bind service if variable currently null --- src/org/torproject/android/Orbot.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/org/torproject/android/Orbot.java b/src/org/torproject/android/Orbot.java index b7bb62f6..a93586d4 100644 --- a/src/org/torproject/android/Orbot.java +++ b/src/org/torproject/android/Orbot.java @@ -390,8 +390,13 @@ public class Orbot extends Activity implements OnLongClickListener, TorConstants autoStartOnBind = true; if (mService == null) + { bindService(); - + } + else + { + //already running! + } } else {