Skip to content

Commit

Permalink
Song will stop itself if it overshoots the expected end time.
Browse files Browse the repository at this point in the history
(Can happen if a ping gets dropped, so the viewer keeps waiting for more packets that will never arrive.)
  • Loading branch information
charliemikels committed May 21, 2024
1 parent d98df41 commit 787b1dd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/abc_player/abc_player.lua
Original file line number Diff line number Diff line change
Expand Up @@ -754,6 +754,7 @@ function play_song_event_loop()

if song == nil
or song.all_instructions_done
or (song.end_time - client.getSystemTime()) < (-0.25 *1000)
then
print("song `".. song.name .."` finished")
stop_playing_songs()
Expand Down

0 comments on commit 787b1dd

Please sign in to comment.