1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-10 15:20:48 -05:00

increase master history to 7 day, up from 1 day

This commit is contained in:
RaidMax
2019-07-21 17:14:44 -05:00
parent 486973a2bc
commit 21cda0123b
5 changed files with 28 additions and 25 deletions

View File

@ -30,7 +30,11 @@ namespace SharedLibraryCore
/// <summary>
/// client is doing too much of something
/// </summary>
Throttle
Throttle,
/// <summary>
/// the event timed out before completion
/// </summary>
Timeout
}
public enum EventType
@ -225,7 +229,9 @@ namespace SharedLibraryCore
{
return Task.Run(() =>
{
OnProcessed.Wait(timeSpan, token);
bool processed = OnProcessed.Wait(timeSpan, token);
// this let's us know if the the action timed out
FailReason = FailReason == EventFailReason.None & !processed ? EventFailReason.Timeout : FailReason;
return this;
});
}