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

Additional zombie stast work

This commit is contained in:
RaidMax
2024-02-11 22:10:12 -06:00
parent 122b6dc79d
commit e1461582fa
45 changed files with 7663 additions and 292 deletions

View File

@ -24,8 +24,16 @@ public static class EventExtensions
{
if (token == CancellationToken.None)
{
// special case to allow tasks like request after delay to run longer
await handler(eventArgType, token);
try
{
// special case to allow tasks like request after delay to run longer
await handler(eventArgType, token);
}
catch (Exception ex)
{
// todo: static logger
Console.WriteLine("InvokeAsync: " + ex);
}
}
using var timeoutToken = new CancellationTokenSource(Utilities.DefaultCommandTimeout);
@ -36,9 +44,10 @@ public static class EventExtensions
{
await handler(eventArgType, tokenSource.Token);
}
catch (Exception)
catch (Exception ex)
{
// ignored
// todo: static logger
Console.WriteLine("InvokeAsync: " + ex);
}
}
}