From 840b2ca0dea22bba983698d832d3f4d1e7efacf8 Mon Sep 17 00:00:00 2001 From: cyBerta Date: Sun, 7 Nov 2021 18:41:09 +0100 Subject: always reset proxy port if tor status turns to OFF --- app/src/main/java/se/leap/bitmaskclient/tor/TorStatusObservable.java | 1 + 1 file changed, 1 insertion(+) (limited to 'app/src/main/java/se/leap') 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); -- cgit v1.2.3