aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2013-09-04 12:30:45 +0200
committerLoïc Hoguin <[email protected]>2013-09-04 12:30:45 +0200
commitbf70b412823b505f0c55b3e807cb3ac2ea689930 (patch)
treee6e83a1847bc9172e4c1b151b409e22107bd5d03 /src
parentd83205243aa4b24e1c6226a8153d6a57051dc0d0 (diff)
downloadcowboy-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')
-rw-r--r--src/cowboy_spdy.erl4
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),