Browse Source

Fix a badmatch issue when calling which_children on SPDY process

Loïc Hoguin 11 years ago
parent
commit
bf70b41282
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/cowboy_spdy.erl

+ 2 - 2
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),