diff ServerMonitor/Objects/ServerMonitor.cs @ 25:781d8b980be1

Fix checks not getting scheduled when a server is enabled.
author Brad Greco <brad@bgreco.net>
date Thu, 30 May 2019 21:41:14 -0400
parents 68d7834dc28e
children 437442cd8090
line wrap: on
line diff
--- a/ServerMonitor/Objects/ServerMonitor.cs	Thu May 30 21:40:57 2019 -0400
+++ b/ServerMonitor/Objects/ServerMonitor.cs	Thu May 30 21:41:14 2019 -0400
@@ -378,6 +378,11 @@
             if (server.Enabled)
             {
                 Run();
+                // Schedule all checks to run.
+                foreach (Check check in server.Checks)
+                {
+                    Server_CheckModified(check, new EventArgs());
+                }
             }
             else
             {