From 3474acff462d5a3335f4e4611030d5df6737aae4 Mon Sep 17 00:00:00 2001 From: Michael Vittiglio Date: Wed, 6 May 2020 17:38:53 -0400 Subject: [PATCH] Clearing instances after instance closing is completed. --- .../src/main/java/com/launchdarkly/android/LDClient.java | 1 + 1 file changed, 1 insertion(+) diff --git a/launchdarkly-android-client-sdk/src/main/java/com/launchdarkly/android/LDClient.java b/launchdarkly-android-client-sdk/src/main/java/com/launchdarkly/android/LDClient.java index fb135707..d92a2a1d 100644 --- a/launchdarkly-android-client-sdk/src/main/java/com/launchdarkly/android/LDClient.java +++ b/launchdarkly-android-client-sdk/src/main/java/com/launchdarkly/android/LDClient.java @@ -455,6 +455,7 @@ private static void closeInstances() { for (LDClient client : instances.values()) { client.closeInternal(); } + instances = null; } @Override