We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 87bdc75 commit a8c72ddCopy full SHA for a8c72dd
sentry-android-ndk/src/main/java/io/sentry/android/ndk/SentryNdk.java
@@ -69,6 +69,15 @@ public static void init(@NotNull final SentryAndroidOptions options) {
69
70
/** Closes the NDK integration */
71
public static void close() {
72
- shutdown();
+ try {
73
+ if (loadLibraryLatch.await(2000, TimeUnit.MILLISECONDS)) {
74
+ shutdown();
75
+ } else {
76
+ throw new IllegalStateException("Timeout waiting for Sentry NDK library to load");
77
+ }
78
+ } catch (InterruptedException e) {
79
+ throw new IllegalStateException(
80
+ "Thread interrupted while waiting for NDK libs to be loaded", e);
81
82
}
83
0 commit comments