From 1801ec179f6bc3e7b8d68cef1df6b0e9106e5fb0 Mon Sep 17 00:00:00 2001 From: Nathan Freitas Date: Thu, 7 Aug 2014 12:11:53 -0400 Subject: [PATCH] don't stop Tor when service is destroyed() --- src/org/torproject/android/service/TorService.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/org/torproject/android/service/TorService.java b/src/org/torproject/android/service/TorService.java index ee3395a1..88806ace 100644 --- a/src/org/torproject/android/service/TorService.java +++ b/src/org/torproject/android/service/TorService.java @@ -393,15 +393,13 @@ public class TorService extends Service implements TorServiceConstants, TorConst } - - public void onDestroy () { super.onDestroy(); logNotice("TorService is being destroyed... shutting down!"); - stopTor(); + //stopTor(); unregisterReceiver(mNetworkStateReceiver); @@ -1827,7 +1825,7 @@ public class TorService extends Service implements TorServiceConstants, TorConst mBinder.saveConfiguration(); } - if (currentStatus == STATUS_ON) + if (currentStatus != STATUS_OFF) { if (!mConnectivity) {