mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-16 13:10:24 +00:00
Fix a badmatch issue when calling which_children on SPDY process
This commit is contained in:
parent
d83205243a
commit
bf70b41282
1 changed files with 2 additions and 2 deletions
|
@ -190,9 +190,9 @@ loop(State=#state{parent=Parent, socket=Socket, transport=Transport,
|
|||
sys:handle_system_msg(Request, From, Parent, ?MODULE, [], State);
|
||||
%% Calls from the supervisor module.
|
||||
{'$gen_call', {To, Tag}, which_children} ->
|
||||
Children = [{?MODULE, Pid, worker, [?MODULE]}
|
||||
Workers = [{?MODULE, Pid, worker, [?MODULE]}
|
||||
|| #child{pid=Pid} <- Children],
|
||||
To ! {Tag, Children},
|
||||
To ! {Tag, Workers},
|
||||
loop(State);
|
||||
{'$gen_call', {To, Tag}, count_children} ->
|
||||
NbChildren = length(Children),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue