Avoid catching log errors
This commit is contained in:
@@ -332,12 +332,13 @@ namespace Discord.Audio
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
await pair.Writer.WriteAsync(packet, 0, packet.Length).ConfigureAwait(false);
|
await pair.Writer.WriteAsync(packet, 0, packet.Length).ConfigureAwait(false);
|
||||||
await _audioLogger.DebugAsync($"Received {packet.Length} bytes from user {userId}").ConfigureAwait(false);
|
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
await _audioLogger.DebugAsync($"Malformed Frame", ex).ConfigureAwait(false);
|
await _audioLogger.DebugAsync($"Malformed Frame", ex).ConfigureAwait(false);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
await _audioLogger.DebugAsync($"Received {packet.Length} bytes from user {userId}").ConfigureAwait(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user