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

FlxSound.resume() NPE #103

Open
t1mco opened this issue Jul 30, 2017 · 0 comments
Open

FlxSound.resume() NPE #103

t1mco opened this issue Jul 30, 2017 · 0 comments

Comments

@t1mco
Copy link

t1mco commented Jul 30, 2017

Hi,

Occasionally when calling FlxG.resumeSounds() I'm getting a NPE. I think there's a timing problem where a sound finishes and _channel is set to null by the 'stop' callback within FlxSound. There's no guard when accessing _channel in the resume method - maybe the access should be synchronised and guarded ?

Thanks,
Tim

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

No branches or pull requests

1 participant