diff options
author | cyBerta <cyberta@riseup.net> | 2021-11-07 18:41:09 +0100 |
---|---|---|
committer | cyBerta <cyberta@riseup.net> | 2021-11-07 18:41:09 +0100 |
commit | 840b2ca0dea22bba983698d832d3f4d1e7efacf8 (patch) | |
tree | 1da75c57f462b24c053d43bcb4096f96d0eb6bb8 /app | |
parent | 07f09531ebe51c36d110371d847776079962df4c (diff) |
always reset proxy port if tor status turns to OFF
Diffstat (limited to 'app')
-rw-r--r-- | app/src/main/java/se/leap/bitmaskclient/tor/TorStatusObservable.java | 1 |
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); |