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

AudioPlayer completionHandler #2916 fix #2917

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

emurray2
Copy link
Member

This PR removes some code in the AudioPlayer internalCompletionHandler to avoid thread-unsafe variables.
#2916

XCTAssert doesn't seem to work on async threads (which the player's completion handler runs on one)
Otherwise we will run into many bugs when these same variables are being read by another thread
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.

None yet

1 participant