Browse Source

Avoid catching log errors

tags/1.0-rc
RogueException 8 years ago
parent
commit
2b16c8620d
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      src/Discord.Net.WebSocket/Audio/AudioClient.cs

+ 2
- 1
src/Discord.Net.WebSocket/Audio/AudioClient.cs View File

@@ -332,12 +332,13 @@ namespace Discord.Audio
try
{
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)
{
await _audioLogger.DebugAsync($"Malformed Frame", ex).ConfigureAwait(false);
return;
}
await _audioLogger.DebugAsync($"Received {packet.Length} bytes from user {userId}").ConfigureAwait(false);
}
}



Loading…
Cancel
Save