From f3cf759d65b6e69d675fd97fb60ba0b3fd0166cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A5rten=20Wikstr=C3=B6m?= Date: Fri, 31 May 2024 11:56:57 +0200 Subject: [PATCH] Fix h2_client:stop() Previously stop would result in "h2_connection received unexpected event of type cast : stop" in the error log --- src/h2_connection.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/h2_connection.erl b/src/h2_connection.erl index 39540ebf..56461fe3 100644 --- a/src/h2_connection.erl +++ b/src/h2_connection.erl @@ -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,