[tor-commits] [orbot/master] when you exit, make sure you also stop the VPN

n8fr8 at torproject.org n8fr8 at torproject.org
Tue Apr 28 21:05:01 UTC 2020


commit bb3640a51891e0285a358fddcc2e3b7de1527ae1
Author: n8fr8 <nathan at guardianproject.info>
Date:   Mon Dec 9 15:44:56 2019 -0500

    when you exit, make sure you also stop the VPN
---
 app/src/main/java/org/torproject/android/OrbotMainActivity.java | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/app/src/main/java/org/torproject/android/OrbotMainActivity.java b/app/src/main/java/org/torproject/android/OrbotMainActivity.java
index 64f1ee42..9ca9f28f 100644
--- a/app/src/main/java/org/torproject/android/OrbotMainActivity.java
+++ b/app/src/main/java/org/torproject/android/OrbotMainActivity.java
@@ -568,6 +568,8 @@ public class OrbotMainActivity extends AppCompatActivity
     private void doExit() {
         stopTor();
 
+        TorVpnService.stop(this);
+
         // Kill all the wizard activities
         setResult(RESULT_CLOSE_ALL);
         finish();





More information about the tor-commits mailing list