don't stop Tor when service is destroyed()
This commit is contained in:
parent
113b18900d
commit
1801ec179f
|
@ -393,15 +393,13 @@ public class TorService extends Service implements TorServiceConstants, TorConst
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public void onDestroy ()
|
public void onDestroy ()
|
||||||
{
|
{
|
||||||
super.onDestroy();
|
super.onDestroy();
|
||||||
|
|
||||||
logNotice("TorService is being destroyed... shutting down!");
|
logNotice("TorService is being destroyed... shutting down!");
|
||||||
|
|
||||||
stopTor();
|
//stopTor();
|
||||||
|
|
||||||
unregisterReceiver(mNetworkStateReceiver);
|
unregisterReceiver(mNetworkStateReceiver);
|
||||||
|
|
||||||
|
@ -1827,7 +1825,7 @@ public class TorService extends Service implements TorServiceConstants, TorConst
|
||||||
mBinder.saveConfiguration();
|
mBinder.saveConfiguration();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (currentStatus == STATUS_ON)
|
if (currentStatus != STATUS_OFF)
|
||||||
{
|
{
|
||||||
if (!mConnectivity)
|
if (!mConnectivity)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue