Skip to content

Commit 007a565

Browse files
Just checking for null sound reference isn't enough since because calling play() on already playing sound is not covered by that condition
1 parent aab5150 commit 007a565

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
@@ -110,7 +110,7 @@ var WebAudioSound = new Class({
110110
this.source.connect(this.muteNode);
111111
this.applyConfig();
112112
this.source.onended = function (ev) {
113-
if (this.source) {
113+
if (this.source && ev.target === this.source) {
114114
this.stop();
115115
}
116116
}.bind(this);

0 commit comments

Comments
 (0)