Mercurial > servermonitor
changeset 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 | 06ff59b59e70 |
children | b5502ce8cb1f |
files | ServerMonitor/Objects/ServerMonitor.cs |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
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 {