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 disabling/re-enabling ANR after initialization #1265

Merged
merged 1 commit into from
May 28, 2021

Conversation

kstenerud
Copy link
Contributor

@kstenerud kstenerud commented May 27, 2021

Goal

PLAT-6620

ANRs were not being re-enabled after being disabled via the API.

Design

Don't exit the watchdog thread anymore. Just loop to the next thread wait point and then after being triggered, only do ANR processing if ANRs are currently enabled.

Testing

Ran in a unity project that disables and enables error and ANR processing.

@kstenerud kstenerud marked this pull request as ready for review May 27, 2021 09:09
Copy link
Contributor

@fractalwrench fractalwrench left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes look good, but the E2E test should be uncommented so that there is confidence everything behaves as expected:

Copy link
Contributor

@fractalwrench fractalwrench left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM pending CI

@fractalwrench
Copy link
Contributor

@kstenerud A changelog entry also needs adding

@kstenerud
Copy link
Contributor Author

OK, I wasn't sure if we needed an entry here or in Unity since the Android library has no public API for enabling/disabling.

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.

2 participants