From 93599570e691ee95408bf434965f30f44850a52f Mon Sep 17 00:00:00 2001 From: "piyush.kukadiya" Date: Sat, 13 Jan 2024 17:55:26 +0530 Subject: [PATCH] fix(push) - fix concurrent modification exception for availableCTPushProviders list SDK-3604 --- .../clevertap/android/sdk/pushnotification/PushProviders.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clevertap-core/src/main/java/com/clevertap/android/sdk/pushnotification/PushProviders.java b/clevertap-core/src/main/java/com/clevertap/android/sdk/pushnotification/PushProviders.java index 83f2653e3..beb09e6ac 100644 --- a/clevertap-core/src/main/java/com/clevertap/android/sdk/pushnotification/PushProviders.java +++ b/clevertap-core/src/main/java/com/clevertap/android/sdk/pushnotification/PushProviders.java @@ -876,7 +876,7 @@ private void pushDeviceTokenEvent(String token, boolean register, PushType pushT * Fetches latest tokens from various providers and send to Clevertap's server */ private void refreshAllTokens() { - Task task = CTExecutorFactory.executors(config).ioTask(); + Task task = CTExecutorFactory.executors(config).postAsyncSafelyTask(); task.execute("PushProviders#refreshAllTokens", new Callable() { @Override public Void call() {