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

Fixing errors on stop/destroy #37

Merged
merged 2 commits into from
Aug 3, 2017
Merged

Conversation

vagnervjs
Copy link
Member

Stop method: In some cases the stop method can be called before creating Shaka player instance, in this case, getStats and unload methods should not be called.

Destroy method: The if/else logic was inverted, and Shaka player's destroy method was being called if the instance did not exist, causing errors.

@leandromoreira leandromoreira merged commit c3987c8 into clappr:master Aug 3, 2017
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