From 787b1ddbf59c1ce54fd1b695240c8f5c8910923d Mon Sep 17 00:00:00 2001 From: Charlie Mikels Date: Mon, 20 May 2024 23:41:03 -0400 Subject: [PATCH] Song will stop itself if it overshoots the expected end time. (Can happen if a ping gets dropped, so the viewer keeps waiting for more packets that will never arrive.) --- scripts/abc_player/abc_player.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/abc_player/abc_player.lua b/scripts/abc_player/abc_player.lua index 1209232..5b09e57 100644 --- a/scripts/abc_player/abc_player.lua +++ b/scripts/abc_player/abc_player.lua @@ -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()