From a1b6a6ee978c0677dbc5f03085b0d36331bac11a Mon Sep 17 00:00:00 2001 From: Pete Cook Date: Tue, 5 Dec 2017 22:11:02 +0000 Subject: [PATCH] Remove unused stop method If the url becomes false, the component will unmount and call stop anyway --- src/Player.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/Player.js b/src/Player.js index 69f79e5a..a4b0bc8a 100644 --- a/src/Player.js +++ b/src/Player.js @@ -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() }