Fix #62, stop doesn't stop from paused state.
This commit is contained in:
parent
800e36d587
commit
3febdb7398
1 changed files with 2 additions and 0 deletions
|
@ -560,6 +560,8 @@ export const stop = (player: number): AppThunk => (dispatch, getState) => {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
wavesurfers[player].stop();
|
wavesurfers[player].stop();
|
||||||
|
// Incase wavesurver wasn't playing, it won't 'finish', so just make sure the UI is stopped.
|
||||||
|
dispatch(mixerState.actions.setPlayerState({ player, state: "stopped" }));
|
||||||
|
|
||||||
if (state.tracklistItemID !== -1) {
|
if (state.tracklistItemID !== -1) {
|
||||||
dispatch(BroadcastState.tracklistEnd(state.tracklistItemID));
|
dispatch(BroadcastState.tracklistEnd(state.tracklistItemID));
|
||||||
|
|
Loading…
Reference in a new issue