Skip to content

Commit

Permalink
fix: skipping current song not clearing if playlist empty
Browse files Browse the repository at this point in the history
  • Loading branch information
miksuh-dev committed Nov 14, 2022
1 parent 0b71b3c commit da81657
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions server/common/playlist/internal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,10 @@ export const stopCurrentSong = async () => {
const nextSong = await getNextSong();
if (nextSong) {
playSong(nextSong);
} else {
ee.emit(`onUpdate`, {
song: { setPlaying: undefined },
});
}
};

Expand Down

0 comments on commit da81657

Please sign in to comment.