diff options
author | Loïc Hoguin <[email protected]> | 2013-09-04 12:30:45 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2013-09-04 12:30:45 +0200 |
commit | bf70b412823b505f0c55b3e807cb3ac2ea689930 (patch) | |
tree | e6e83a1847bc9172e4c1b151b409e22107bd5d03 /src/cowboy_spdy.erl | |
parent | d83205243aa4b24e1c6226a8153d6a57051dc0d0 (diff) | |
download | cowboy-bf70b412823b505f0c55b3e807cb3ac2ea689930.tar.gz cowboy-bf70b412823b505f0c55b3e807cb3ac2ea689930.tar.bz2 cowboy-bf70b412823b505f0c55b3e807cb3ac2ea689930.zip |
Fix a badmatch issue when calling which_children on SPDY process
Diffstat (limited to 'src/cowboy_spdy.erl')
-rw-r--r-- | src/cowboy_spdy.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cowboy_spdy.erl b/src/cowboy_spdy.erl index 76c859f..4ee0167 100644 --- a/src/cowboy_spdy.erl +++ b/src/cowboy_spdy.erl @@ -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), |