aboutsummaryrefslogtreecommitdiffstats
path: root/src/gun_http2.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/gun_http2.erl')
-rw-r--r--src/gun_http2.erl5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gun_http2.erl b/src/gun_http2.erl
index 3468448..6538083 100644
--- a/src/gun_http2.erl
+++ b/src/gun_http2.erl
@@ -18,7 +18,7 @@
-export([name/0]).
-export([init/4]).
-export([handle/2]).
--export([close/1]).
+-export([close/2]).
-export([keepalive/1]).
-export([request/8]).
-export([request/9]).
@@ -225,7 +225,8 @@ ignored_frame(State=#http2_state{http2_machine=HTTP2Machine0}) ->
terminate(State#http2_state{http2_machine=HTTP2Machine}, Error)
end.
-close(#http2_state{streams=Streams}) ->
+%% @todo Use Reason.
+close(_, #http2_state{streams=Streams}) ->
close_streams(Streams).
close_streams([]) ->