Skip to content

Commit

Permalink
Eat trapped exit
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismccord committed Nov 15, 2023
1 parent de89632 commit 2b4d182
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/phoenix_live_view/upload_channel.ex
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,10 @@ defmodule Phoenix.LiveView.UploadChannel do
end

@impl true
def handle_info({:EXIT, _pid, reason}, socket) do
{:stop, reason, socket}
end

def handle_info(
{:DOWN, _, _, live_view_pid, reason},
%{assigns: %{live_view_pid: live_view_pid}} = socket
Expand Down

0 comments on commit 2b4d182

Please sign in to comment.