From d82716bc0955c7e0350a74f530f28d68c3648860 Mon Sep 17 00:00:00 2001 From: Diego R Galindo Date: Mon, 5 Oct 2020 13:14:42 +0200 Subject: [PATCH] Fix thread execution `run` won't trigger the task in new thread. It has to be `start` otherwise current thread will be blocked until task finishes --- .../reactnative/LaunchdarklyReactNativeClientModule.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/src/main/java/com/launchdarkly/reactnative/LaunchdarklyReactNativeClientModule.java b/android/src/main/java/com/launchdarkly/reactnative/LaunchdarklyReactNativeClientModule.java index ccb0a15..7963867 100644 --- a/android/src/main/java/com/launchdarkly/reactnative/LaunchdarklyReactNativeClientModule.java +++ b/android/src/main/java/com/launchdarkly/reactnative/LaunchdarklyReactNativeClientModule.java @@ -989,7 +989,7 @@ public void run() { } } }); - background.run(); + background.start(); } @ReactMethod