Skip to content

Commit

Permalink
fix(player): stop polling if no more new song
Browse files Browse the repository at this point in the history
  • Loading branch information
rudywaltz committed Jun 22, 2019
1 parent 16c4028 commit 40fa900
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Player.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@
const nextSong = () => {
if (!$playlist.length) {
$song = {};
clearPollingSong = true;
currentSound = null;
duration = 0;
time = 0;
playing = false;
return;
}
Expand Down

0 comments on commit 40fa900

Please sign in to comment.