Horde: Remove code to clear downtime from globals list. Downtime was not triggering due to repeated schedules being removed.

#rb none
#jira UE-116835

[CL 16832084 by Ben Marsh in ue5-main branch]
This commit is contained in:
Ben Marsh
2021-07-12 17:49:47 -04:00
parent 2e38c6e1a5
commit b8cef9cab2
2 changed files with 1 additions and 11 deletions

View File

@@ -376,15 +376,5 @@ namespace HordeServer.Models
return PerforceClusters.FirstOrDefault(x => String.Equals(x.Name, Name, StringComparison.OrdinalIgnoreCase));
}
}
/// <inheritdoc/>
public override void PostLoad()
{
base.PostLoad();
DateTimeOffset Now = DateTimeOffset.Now;
Notices.RemoveAll(x => x.FinishTime != null && x.FinishTime < Now);
ScheduledDowntime.RemoveAll(x => x.FinishTime < Now);
}
}
}

View File

@@ -33,7 +33,7 @@ namespace HordeServer.Services
/// <summary>
/// Config file version number
/// </summary>
const int Version = 4;
const int Version = 5;
/// <summary>
/// Database service