summaryrefslogtreecommitdiff
path: root/app/src/main/java/se/leap/bitmaskclient
diff options
context:
space:
mode:
authorcyBerta <cyberta@riseup.net>2021-11-07 18:41:09 +0100
committercyBerta <cyberta@riseup.net>2021-11-07 18:41:09 +0100
commit840b2ca0dea22bba983698d832d3f4d1e7efacf8 (patch)
tree1da75c57f462b24c053d43bcb4096f96d0eb6bb8 /app/src/main/java/se/leap/bitmaskclient
parent07f09531ebe51c36d110371d847776079962df4c (diff)
always reset proxy port if tor status turns to OFF
Diffstat (limited to 'app/src/main/java/se/leap/bitmaskclient')
-rw-r--r--app/src/main/java/se/leap/bitmaskclient/tor/TorStatusObservable.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/src/main/java/se/leap/bitmaskclient/tor/TorStatusObservable.java b/app/src/main/java/se/leap/bitmaskclient/tor/TorStatusObservable.java
index fae7d063..2527ce83 100644
--- a/app/src/main/java/se/leap/bitmaskclient/tor/TorStatusObservable.java
+++ b/app/src/main/java/se/leap/bitmaskclient/tor/TorStatusObservable.java
@@ -160,6 +160,7 @@ public class TorStatusObservable extends Observable {
if (getInstance().status == TorStatus.OFF) {
getInstance().torNotificationManager.cancelNotifications(context);
getInstance().cancelled = false;
+ getInstance().port = -1;
} else {
if (logKey != null) {
getInstance().lastTorLog = getStringFor(context, logKey);