Skip to content

Commit

Permalink
When a backing track ends, properly ending the song requires clearing…
Browse files Browse the repository at this point in the history
… the leader. Fixes #216.
  • Loading branch information
jeffkaufman committed Feb 6, 2021
1 parent c42c6d2 commit f2ea1f3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server.py
Original file line number Diff line number Diff line change
Expand Up @@ -990,6 +990,7 @@ def handle_post(in_json, in_data) -> Tuple[Any, str]:
if state.backing_track_index == len(state.backing_track):
# the song has ended, mark it so
state.song_end_clock = clear_index
state.leader = None

if clear_samples > 0:
if state.metronome_on:
Expand Down

0 comments on commit f2ea1f3

Please sign in to comment.