2
0

Compare commits

..

2 Commits

Author SHA1 Message Date
7be3ee52e9 Merge branch 'refs/heads/cuttingedge-merge-ServerV2' into cuttingedge 2024-09-23 15:40:53 +02:00
981eb0fd9f Fix notification batching:
Do not resend old notifications.
2024-09-23 15:40:43 +02:00

View File

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