Fixed some of the compiler warnings.

This commit is contained in:
Tom
2024-12-28 21:19:28 +00:00
parent db1d57c218
commit 4f5dd8f24e
20 changed files with 93 additions and 131 deletions

View File

@@ -47,6 +47,7 @@ namespace TwitchChatTTS.Twitch.Socket.Handlers
else
_logger.Debug($"No redeemable actions for ad break begin was found");
#pragma warning disable CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed
Task.Run(async () =>
{
await Task.Delay(TimeSpan.FromSeconds(message.DurationSeconds));
@@ -73,6 +74,7 @@ namespace TwitchChatTTS.Twitch.Socket.Handlers
else
_logger.Debug($"No redeemable actions for ad break end was found");
});
#pragma warning restore CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed
}
catch (Exception ex)
{