only bind service if variable currently null

This commit is contained in:
Nathan Freitas 2012-01-09 00:23:23 -05:00
parent 8b6133ff26
commit e206a241ab
1 changed files with 6 additions and 1 deletions

View File

@ -390,8 +390,13 @@ public class Orbot extends Activity implements OnLongClickListener, TorConstants
autoStartOnBind = true; autoStartOnBind = true;
if (mService == null) if (mService == null)
{
bindService(); bindService();
}
else
{
//already running!
}
} }
else else
{ {