Update live_information.dart

This commit is contained in:
ImBenji
2024-02-28 05:39:54 +00:00
parent 074b19ae92
commit d39a304d73

View File

@@ -82,7 +82,8 @@ class LiveInformation {
if (audioPlayer.state != AudioWrapper_State.Playing) {
if (announcementQueue.isNotEmpty) {
if (announcementQueue.first.scheduledTime != null && announcementQueue.first.scheduledTime!.isAfter(DateTime.now())) {
// Is the announcement in the queue ready to be announced? (is within 100ms of the current time)
if (announcementQueue.first.timestamp != null && announcementQueue.first.timestamp!.isAfter(DateTime.now().add(Duration(milliseconds: 100)))) {
return;
}