From 8db373eb1618347d125ce261d723e7b178add4cc Mon Sep 17 00:00:00 2001 From: Tobias Casper Date: Sun, 31 Mar 2024 04:07:06 +0200 Subject: [PATCH] docs: update GenServer example --- examples/gen_server.exs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/gen_server.exs b/examples/gen_server.exs index f149dd4..7c198aa 100644 --- a/examples/gen_server.exs +++ b/examples/gen_server.exs @@ -39,11 +39,11 @@ defmodule EventLogger do @impl true def handle_info( - {:DOWN, monitor, :process, socket, :normal}, + {:DOWN, monitor, :process, socket, reason}, %{monitor: monitor, socket: socket} = state ) do IO.puts("Socket closed") - {:stop, :normal, %{state | socket: nil, subscription_id: nil}} + {:stop, reason, %{state | socket: nil, subscription_id: nil}} end def handle_info(