if the tunneler goes down, it's notifying clients, not the monitor service

This commit is contained in:
dovholuknf
2024-07-30 06:57:08 -04:00
parent b2f008d858
commit 02a4a4e4b6
-10
View File
@@ -1009,16 +1009,6 @@ namespace ZitiUpdateService {
if (svc.CleanShutdown) {
//then this is fine and expected - the service is shutting down
Logger.Info("client disconnected due to clean service shutdown");
MonitorServiceStatusEvent status = new MonitorServiceStatusEvent() {
Code = 0,
Error = "SERVICE DOWN",
Message = "SERVICE DOWN",
Status = ServiceActions.ServiceStatus(),
AutomaticUpgradeDisabled = CurrentSettings.AutomaticUpdatesDisabled.ToString(),
AutomaticUpgradeURL = CurrentSettings.AutomaticUpdateURL,
};
EventRegistry.SendEventToConsumers(status);
} else {
Logger.Error("SERVICE IS DOWN and did not exit cleanly.");