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 crash when clearing playerLayer observer after already unset #1075

Merged
merged 1 commit into from
Jun 20, 2018

Conversation

cobarx
Copy link
Contributor

@cobarx cobarx commented Jun 20, 2018

Fixes #907 by checking to ensure the playerLayer observer is set. Otherwise we crash.

During the teardown process, it's possible to call removePlayerLayer multiple times. If this happens, the library will crash due to attempting to remove an observer that doesn't exist.

@cobarx cobarx merged commit 21cfcfd into master Jun 20, 2018
@cobarx cobarx deleted the bugfix/remove-playerlayer-observer branch June 20, 2018 23:37
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.

1 participant