Skip to content

Commit

Permalink
Remove unused stop method
Browse files Browse the repository at this point in the history
If the url becomes false, the component will unmount and call stop anyway
  • Loading branch information
cookpete committed Dec 5, 2017
1 parent fc29675 commit a1b6a6e
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/Player.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@ export default class Player extends Component {
if (url !== nextProps.url) {
this.player.load(nextProps.url, this.isReady)
}
if (url && !nextProps.url) {
this.player.stop()
}
if (!playing && nextProps.playing && !this.isPlaying) {
this.player.play()
}
Expand Down

0 comments on commit a1b6a6e

Please sign in to comment.