avoid double-tracklisting
This commit is contained in:
parent
657861b5e2
commit
5138e0f8a1
1 changed files with 5 additions and 1 deletions
|
@ -525,7 +525,11 @@ export const play = (player: number): AppThunk => async (
|
|||
if (state.loadedItem && "album" in state.loadedItem) {
|
||||
//track
|
||||
console.log("potentially tracklisting", state.loadedItem);
|
||||
if (getState().mixer.players[player].tracklistItemID !== -1) {
|
||||
dispatch(BroadcastState.tracklistStart(player, state.loadedItem.trackid));
|
||||
} else {
|
||||
console.log("not tracklisting because already tracklisted");
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue