Skip to content

Commit

Permalink
fix changing src issue
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonocasey committed May 7, 2018
1 parent 8c8a59d commit c44adf5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/js/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -2611,8 +2611,12 @@ class Player extends Component {
}

if (!titleCaseEquals(sourceTech.tech, this.techName_)) {
this.changingSrc_ = true;
// load this technology with the chosen source
this.loadTech_(sourceTech.tech, sourceTech.source);
this.tech_.ready(() => {
this.changingSrc_ = false;
});
return false;
}

Expand Down

0 comments on commit c44adf5

Please sign in to comment.