aboutsummaryrefslogtreecommitdiffstats
path: root/src/cowboy_http2.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/cowboy_http2.erl')
-rw-r--r--src/cowboy_http2.erl10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/cowboy_http2.erl b/src/cowboy_http2.erl
index 6399346..7dbfb24 100644
--- a/src/cowboy_http2.erl
+++ b/src/cowboy_http2.erl
@@ -247,14 +247,8 @@ loop(State=#state{parent=Parent, socket=Socket, transport=Transport,
Msg = {'EXIT', Pid, _} ->
loop(down(State, Pid, Msg), Buffer);
%% Calls from supervisor module.
- {'$gen_call', {From, Tag}, which_children} ->
- From ! {Tag, cowboy_children:which_children(Children, ?MODULE)},
- loop(State, Buffer);
- {'$gen_call', {From, Tag}, count_children} ->
- From ! {Tag, cowboy_children:count_children(Children)},
- loop(State, Buffer);
- {'$gen_call', {From, Tag}, _} ->
- From ! {Tag, {error, ?MODULE}},
+ {'$gen_call', From, Call} ->
+ cowboy_children:handle_supervisor_call(Call, From, Children, ?MODULE),
loop(State, Buffer);
Msg ->
error_logger:error_msg("Received stray message ~p.", [Msg]),