mirror of
https://github.com/photonstorm/phaser
synced 2024-12-18 00:53:42 +00:00
Added a todo to fix race condition
This commit is contained in:
parent
2995b7eaf6
commit
ceeef0368c
1 changed files with 1 additions and 1 deletions
|
@ -112,7 +112,7 @@ var WebAudioSound = new Class({
|
||||||
this.source.onended = function (ev) {
|
this.source.onended = function (ev) {
|
||||||
if (ev.target === this.source) {
|
if (ev.target === this.source) {
|
||||||
// sound ended
|
// sound ended
|
||||||
this.stop();
|
this.stop(); // TODO creates race condition because it's called in separate thread
|
||||||
}
|
}
|
||||||
// else was stopped
|
// else was stopped
|
||||||
}.bind(this);
|
}.bind(this);
|
||||||
|
|
Loading…
Reference in a new issue