mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-26 06:27:19 +01:00
Do not recreate OperationCanceledException
This commit is contained in:
@@ -312,10 +312,8 @@ namespace Tgstation.Server.Host.Components.Chat.Providers
|
||||
|
||||
await SendToChannel(new Snowflake(channelId));
|
||||
}
|
||||
catch (Exception e)
|
||||
catch (Exception e) when (e is not OperationCanceledException)
|
||||
{
|
||||
if (e is OperationCanceledException)
|
||||
cancellationToken.ThrowIfCancellationRequested();
|
||||
Logger.LogWarning(e, "Error sending discord message!");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user