Skip to content

Commit

Permalink
Inspect error when bad voice packet is received
Browse files Browse the repository at this point in the history
  • Loading branch information
BrandtHill committed Aug 20, 2024
1 parent bc9a12a commit 8004efd
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/nostrum/voice/session.ex
Original file line number Diff line number Diff line change
Expand Up @@ -155,10 +155,8 @@ defmodule Nostrum.Voice.Session do

{:noreply, state}
rescue
_error ->
Logger.warning(
"Received bad voice packet in guild_id #{state.guild_id}: #{inspect(packet)}"
)
error ->
Logger.warning("Received bad voice packet in guild_id #{state.guild_id}: #{inspect(error)}")

{:noreply, state}
end
Expand Down

0 comments on commit 8004efd

Please sign in to comment.