Skip to content

Commit ceeef03

Browse files
Added a todo to fix race condition
1 parent 2995b7e commit ceeef03

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

v3/src/sound/webaudio/WebAudioSound.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ var WebAudioSound = new Class({
112112
this.source.onended = function (ev) {
113113
if (ev.target === this.source) {
114114
// sound ended
115-
this.stop();
115+
this.stop(); // TODO creates race condition because it's called in separate thread
116116
}
117117
// else was stopped
118118
}.bind(this);

0 commit comments

Comments
 (0)