Skip to content

Commit

Permalink
Merge pull request #624 from BrandtHill/master
Browse files Browse the repository at this point in the history
Rescue async voice listening from mystery meat packets
  • Loading branch information
jchristgit committed Aug 22, 2024
2 parents 387ee43 + 8004efd commit d0c62c9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/nostrum/voice/session.ex
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,11 @@ defmodule Nostrum.Voice.Session do
end

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

{:noreply, state}
end

def handle_cast(:heartbeat, %{heartbeat_ack: false, heartbeat_ref: timer_ref} = state) do
Expand Down

0 comments on commit d0c62c9

Please sign in to comment.