From bf70b412823b505f0c55b3e807cb3ac2ea689930 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Wed, 4 Sep 2013 12:30:45 +0200 Subject: Fix a badmatch issue when calling which_children on SPDY process --- src/cowboy_spdy.erl | 4 ++-- 1 file 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), -- cgit v1.2.3