From 1cc648feca95a498e03b75c03a715d8cc8fb90ad Mon Sep 17 00:00:00 2001 From: David Vacca Date: Fri, 18 Oct 2024 11:13:40 -0700 Subject: [PATCH] Interrupt thread before throwing in BridgelessDevSupportManager (#47100) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/47100 We should interrupt thread before throwing changelog: [internal] internal Reviewed By: bvanderhoof, arushikesarwani94 Differential Revision: D64545258 fbshipit-source-id: dec90ca2e75b8f3bceb258edbb525372065962ee --- .../facebook/react/devsupport/BridgelessDevSupportManager.java | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/devsupport/BridgelessDevSupportManager.java b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/devsupport/BridgelessDevSupportManager.java index 676a8620e0d397..355a88d1a0dda5 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/devsupport/BridgelessDevSupportManager.java +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/devsupport/BridgelessDevSupportManager.java @@ -100,6 +100,7 @@ public void onSuccess(final JSBundleLoader bundleLoader) { } callback.onSuccess(); } catch (InterruptedException e) { + Thread.currentThread().interrupt(); throw new RuntimeException( "[BridgelessDevSupportManager]: Got interrupted while loading bundle", e); }