2
0

Fix notification batching:

Do not resend old notifications.
This commit is contained in:
Glax 2024-09-23 15:40:43 +02:00
parent 6d03cc5f8d
commit 981eb0fd9f

View File

@ -35,6 +35,7 @@ public abstract class NotificationConnector : GlobalBase
SendNotificationInternal($"{ut} ({texts.Length})", string.Join('\n', texts));
}
_notificationRequested = null;
_notifications.Clear();
}
Thread.Sleep(100);
}
@ -61,6 +62,7 @@ public abstract class NotificationConnector : GlobalBase
SendNotificationInternal(ut, string.Join('\n', texts));
}
_notificationRequested = null;
_notifications.Clear();
}
else if(_notificationRequested is not null)
{