diff ServerMonitor/Forms/CheckForm.cs @ 16:7626b099aefd

More comments.
author Brad Greco <brad@bgreco.net>
date Tue, 30 Apr 2019 20:40:58 -0400
parents 23f2e0da1094
children 48044d9ac000
line wrap: on
line diff
--- a/ServerMonitor/Forms/CheckForm.cs	Mon Apr 22 21:11:27 2019 -0400
+++ b/ServerMonitor/Forms/CheckForm.cs	Tue Apr 30 20:40:58 2019 -0400
@@ -250,6 +250,9 @@
             // again.
             CancellationTokenSource localCancellationTokenSource = new CancellationTokenSource();
             cancellationTokenSource = localCancellationTokenSource;
+            // Do not update the check status or execution history when the check is run interactively.
+            // No need to pollute the history with manual executions that will likely fail as a
+            // check is being configured.
             CheckResult result = await workCheck.ExecuteAsync(cancellationTokenSource.Token, false);
             if (!localCancellationTokenSource.IsCancellationRequested)
                 OnRunFinished(result);