Fix race condition not returning a Promise

master
William Toohey 9 years ago
parent f0200e6b0c
commit b9a808e1a3
  1. 2
      src/js/SoundManager.js

@ -300,7 +300,7 @@ SoundManager.prototype.loadSong = function(song) {
if(song._loadPromise) { if(song._loadPromise) {
// Someone went forward then immediately back then forward again // Someone went forward then immediately back then forward again
// Either way, the sound is still loading. It'll come back when it's ready // Either way, the sound is still loading. It'll come back when it's ready
return; return song._loadPromise;
} }
let buffers = {loop: null, buildup: null}; let buffers = {loop: null, buildup: null};

Loading…
Cancel
Save