summaryrefslogtreecommitdiff
path: root/app/src/main/java/se/leap
diff options
context:
space:
mode:
authorcyBerta <cyberta@riseup.net>2021-09-30 14:50:29 +0200
committercyBerta <cyberta@riseup.net>2021-09-30 14:50:29 +0200
commit780c63fc4afbe38eca70237e07165d88596b3843 (patch)
treeadeefd9af9645e5e862a34eab59b11f01f12368c /app/src/main/java/se/leap
parent2da4c19827ed722f4dde2830bd84b21553a13bcd (diff)
remove tor circuit setup observer once timeout reached or tor circuits have been setup successfully
Diffstat (limited to 'app/src/main/java/se/leap')
-rw-r--r--app/src/main/java/se/leap/bitmaskclient/providersetup/ProviderApiManagerBase.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/src/main/java/se/leap/bitmaskclient/providersetup/ProviderApiManagerBase.java b/app/src/main/java/se/leap/bitmaskclient/providersetup/ProviderApiManagerBase.java
index b7108225..9ca4c746 100644
--- a/app/src/main/java/se/leap/bitmaskclient/providersetup/ProviderApiManagerBase.java
+++ b/app/src/main/java/se/leap/bitmaskclient/providersetup/ProviderApiManagerBase.java
@@ -315,6 +315,7 @@ public abstract class ProviderApiManagerBase {
};
TorStatusObservable.getInstance().addObserver(observer);
countDownLatch.await(180, TimeUnit.SECONDS);
+ TorStatusObservable.getInstance().deleteObserver(observer);
}
void resetProviderDetails(Provider provider) {