Throwing an exception wasn't a good idea anyway

master
William Toohey 9 years ago
parent 8a94978bb9
commit 5a648056d5
  1. 6
      src/js/SoundManager.js

@ -170,11 +170,7 @@ SoundManager.prototype.playSong = function(song, playBuild, forcePlay) {
}).then(buffers => {
// To prevent race condition if you press "next" twice fast
if(song != this.song) {
// Stop processing
throw {
name: "SoundManagerRace",
message: "Song not playable - ignoring!"
};
return Promise.reject("Song changed between load and play - this message can be ignored");
}
this.buildup = buffers.buildup;

Loading…
Cancel
Save