From 818281a7fdf8b43437e14478a2276dc821b69284 Mon Sep 17 00:00:00 2001 From: cyBerta Date: Thu, 15 Jul 2021 00:10:15 +0200 Subject: set torService to null when tor service connection disconnected --- app/src/main/java/se/leap/bitmaskclient/providersetup/ProviderAPI.java | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/se/leap/bitmaskclient/providersetup/ProviderAPI.java b/app/src/main/java/se/leap/bitmaskclient/providersetup/ProviderAPI.java index 322bf1cd..42ded09f 100644 --- a/app/src/main/java/se/leap/bitmaskclient/providersetup/ProviderAPI.java +++ b/app/src/main/java/se/leap/bitmaskclient/providersetup/ProviderAPI.java @@ -243,6 +243,7 @@ public class ProviderAPI extends JobIntentService implements ProviderApiManagerB @Override public void onServiceDisconnected(ComponentName name) { + torService = null; } }; Intent intent = new Intent(context, TorService.class); -- cgit v1.2.3