Skip to content

Commit 0a078d2

Browse files
Setting hasEnded when sound ends
1 parent f0bc96e commit 0a078d2

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
@@ -120,7 +120,7 @@ var WebAudioSound = new Class({
120120
this.source.onended = function (ev) {
121121
if (ev.target === this.source) {
122122
// sound ended
123-
this.stop(); // TODO creates race condition because it's called in separate thread
123+
this.hasEnded = true;
124124
}
125125
// else was stopped
126126
}.bind(this);

0 commit comments

Comments
 (0)