[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [orbot/master] only bind service if variable currently null
commit e206a241ab5a4c95d0bbbc4d93826343e7117c5b
Author: Nathan Freitas <nathan@xxxxxxxxxxx>
Date: Mon Jan 9 00:23:23 2012 -0500
only bind service if variable currently null
---
src/org/torproject/android/Orbot.java | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/src/org/torproject/android/Orbot.java b/src/org/torproject/android/Orbot.java
index b7bb62f..a93586d 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
{
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits