Added a todo to fix race condition

This commit is contained in:
Pavle Goloskokovic 2017-11-26 16:41:46 +01:00
parent 2995b7eaf6
commit ceeef0368c

View file

@ -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);