Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: SentryMonoBehaviour persists multiple options #376

Merged
merged 2 commits into from
Oct 19, 2021

Conversation

bitsandfoxes
Copy link
Contributor

Resolves: #369

The issue: Every time a new SentryUnityOptions object gets created we create a new CreateSentryMonoBehaviour and in its Awake we check if the Instance has already been set and if so it deletes itself.
Unfortunately, we pass the object itself to the integrations and not the instance.
So if a user has disabled options and initializes the SDK programmatically the self-deleting SentryMonobehaviour gets passed to the integrations and the context data we collect is missing.

@bitsandfoxes bitsandfoxes changed the title fix: SentryMonoBehaviour as a Singleton fix: SentryMonoBehaviour persists multiple options Oct 18, 2021
@bruno-garcia bruno-garcia merged commit 2b44f64 into main Oct 19, 2021
@bruno-garcia bruno-garcia deleted the fix/sentrymonobehaviour branch October 19, 2021 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Initializing Sentry clean default device info on events
2 participants