Skip to content

Commit

Permalink
Tighten up type checking on Handler's internal callbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
mtrudel committed Nov 8, 2023
1 parent 976ba7f commit be41597
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/thousand_island/handler.ex
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ defmodule ThousandIsland.Handler do
{:stop, reason, {socket, state}}
end

def handle_info(:timeout, {socket, state}) do
def handle_info(:timeout, {%ThousandIsland.Socket{} = socket, state}) do
{:stop, {:shutdown, :timeout}, {socket, state}}
end

Expand Down

0 comments on commit be41597

Please sign in to comment.