From ceeef0368cc071ee4c61fd693a5cdfefcae31ba7 Mon Sep 17 00:00:00 2001 From: Pavle Goloskokovic Date: Sun, 26 Nov 2017 16:41:46 +0100 Subject: [PATCH] Added a todo to fix race condition --- v3/src/sound/webaudio/WebAudioSound.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/v3/src/sound/webaudio/WebAudioSound.js b/v3/src/sound/webaudio/WebAudioSound.js index 7e5106334..a401c5ee6 100644 --- a/v3/src/sound/webaudio/WebAudioSound.js +++ b/v3/src/sound/webaudio/WebAudioSound.js @@ -112,7 +112,7 @@ var WebAudioSound = new Class({ this.source.onended = function (ev) { if (ev.target === this.source) { // sound ended - this.stop(); + this.stop(); // TODO creates race condition because it's called in separate thread } // else was stopped }.bind(this);