diff --git a/src/h2_stream.erl b/src/h2_stream.erl index f600d8b1..2c540f16 100644 --- a/src/h2_stream.erl +++ b/src/h2_stream.erl @@ -719,7 +719,7 @@ send_trailers(State, Trailers, Stream=#stream_state{connection=Pid, h2_connection:actually_send_trailers(Pid, StreamId, Trailers), case State of half_closed_remote -> - {next_state, closed, Stream}; + {next_state, closed, Stream, 0}; open -> {next_state, half_closed_local, Stream} end.