Skip to content

Commit

Permalink
Update src/Sentry.Unity.Android/SentryNativeAndroid.cs
Browse files Browse the repository at this point in the history
Co-authored-by: Bruno Garcia <bruno@brunogarcia.com>
  • Loading branch information
vaind and bruno-garcia committed Mar 9, 2022
1 parent 08e198f commit c1f7b14
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
5 changes: 0 additions & 5 deletions src/Sentry.Unity.Android/SentryNative.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ namespace Sentry.Unity.Android
/// <see href="https://github.com/getsentry/sentry-native"/>
public static class SentryNative
{
public static void Close() => sentry_close();

/// <summary>
/// Re-installs the sentry-native backend essentially retaking the signal handlers.
/// </summary>
Expand All @@ -32,9 +30,6 @@ public static class SentryNative
[DllImport("sentry")]
private static extern void sentry_reinstall_backend();

[DllImport("sentry")]
private static extern void sentry_close();

// Testing
internal static Action ReinstallSentryNativeBackendStrategy = sentry_reinstall_backend;
}
Expand Down
3 changes: 1 addition & 2 deletions src/Sentry.Unity.Android/SentryNativeAndroid.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,9 @@ public static void Configure(SentryUnityOptions options, ISentryUnityInfo sentry
}
ApplicationAdapter.Instance.Quitting += () =>
{
// Sentry Native is initialized and closed by the Java SDK, no need to call into it directly
options.DiagnosticLogger?.LogDebug("Closing the sentry-java SDK");
SentryJava.Close();
options.DiagnosticLogger?.LogDebug("Closing the sentry-native SDK");
SentryNative.Close();
};
}
}
Expand Down

0 comments on commit c1f7b14

Please sign in to comment.