Skip to content

Commit

Permalink
Fix h2_client:stop()
Browse files Browse the repository at this point in the history
Previously stop would result in "h2_connection received unexpected
event of type cast : stop" in the error log
  • Loading branch information
mwik committed May 31, 2024
1 parent 8fef339 commit f3cf759
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/h2_connection.erl
Original file line number Diff line number Diff line change
Expand Up @@ -805,7 +805,7 @@ handle_event(_, {send_frame, Frame},
Binary = h2_frame:to_binary(Frame),
socksend(Conn, Binary),
{keep_state, Conn};
handle_event(stop, _StateName,
handle_event(_, stop,
#connection{}=Conn) ->
go_away(stop, 0, Conn);
handle_event({call, From}, streams,
Expand Down

0 comments on commit f3cf759

Please sign in to comment.