diff --git a/agent/ShopDbEndpointAgent.Tray/FleetAlertForm.cs b/agent/ShopDbEndpointAgent.Tray/FleetAlertForm.cs
index 4341a303..d50bfcb5 100644
--- a/agent/ShopDbEndpointAgent.Tray/FleetAlertForm.cs
+++ b/agent/ShopDbEndpointAgent.Tray/FleetAlertForm.cs
@@ -37,6 +37,12 @@ internal sealed class FleetAlertForm : Form
ApplyRoundedCorners();
Load += FleetAlertForm_Load;
+ FormClosing += FleetAlertForm_FormClosing;
+ }
+
+ private void FleetAlertForm_FormClosing(object? sender, FormClosingEventArgs e)
+ {
+ countdownTimer?.Stop();
}
private void FleetAlertForm_Load(object? sender, EventArgs e)
@@ -255,6 +261,7 @@ internal sealed class FleetAlertForm : Form
private void AcknowledgeButton_Click(object? sender, EventArgs e)
{
+ countdownTimer?.Stop();
OnAcknowledgeClicked?.Invoke(this, EventArgs.Empty);
DialogResult = DialogResult.OK;
Close();
@@ -262,6 +269,7 @@ internal sealed class FleetAlertForm : Form
private void CloseButton_Click(object? sender, EventArgs e)
{
+ countdownTimer?.Stop();
OnAcknowledgeClicked?.Invoke(this, EventArgs.Empty);
DialogResult = DialogResult.OK;
Close();
diff --git a/agent/ShopDbEndpointAgent.Tray/ShopDbEndpointAgent.Tray.csproj b/agent/ShopDbEndpointAgent.Tray/ShopDbEndpointAgent.Tray.csproj
index 65c0d240..9122be2e 100644
--- a/agent/ShopDbEndpointAgent.Tray/ShopDbEndpointAgent.Tray.csproj
+++ b/agent/ShopDbEndpointAgent.Tray/ShopDbEndpointAgent.Tray.csproj
@@ -71,7 +71,9 @@
copies of the exit-code handling. A tray that cannot open the channel
logs and keeps its timer, so the failure mode is "refresh is not
immediate", not "session data stops working". Requires agent 1.11.0. -->
- 1.6.0
+
+ 1.6.1
true
win-x64
true