From f2ea1f338bd703fe00a0c4d31cd50882d836e3f6 Mon Sep 17 00:00:00 2001 From: Jeff Kaufman Date: Sat, 6 Feb 2021 16:16:45 +0000 Subject: [PATCH] When a backing track ends, properly ending the song requires clearing the leader. Fixes #216. --- server.py | 1 + 1 file changed, 1 insertion(+) diff --git a/server.py b/server.py index 1475514..0a38cee 100755 --- a/server.py +++ b/server.py @@ -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: