status should update whether there is msg or not

This commit is contained in:
Nathan Freitas 2014-05-30 11:26:48 -04:00
parent 25f6499f6b
commit 36a6349b67
1 changed files with 2 additions and 7 deletions

View File

@ -862,13 +862,8 @@ public class Orbot extends ActionBarActivity implements TorConstants, OnLongClic
int newTorStatus = -1; int newTorStatus = -1;
try try
{ {
if (mTorServiceMsg != null && mTorServiceMsg.length()>0) if (mService != null)
{ return new Integer(mService.getStatus());
//if the serivce is bound, query it for the curren status value (int)
if (mService != null)
return new Integer(mService.getStatus());
}
} }
catch (Exception e) catch (Exception e)