forked from erlang/signerl
include DHA pid in init arguments of component supervisor
This commit is contained in:
parent
57be88ad13
commit
bd91071d0b
|
@ -86,7 +86,8 @@ init({USAP, DialogueID, TCO, Supervisor}) ->
|
||||||
init({USAP, DialogueID, TCO, SupId, Supervisor}) ->
|
init({USAP, DialogueID, TCO, SupId, Supervisor}) ->
|
||||||
%% Start a Component Coordinator (CCO) process
|
%% Start a Component Coordinator (CCO) process
|
||||||
ChildName = list_to_atom("cco_sup_" ++ integer_to_list(DialogueID)),
|
ChildName = list_to_atom("cco_sup_" ++ integer_to_list(DialogueID)),
|
||||||
StartFunc = {supervisor, start_link, [tcap_components_sup, [USAP, DialogueID]]},
|
ChildArgs = [USAP, DialogueID, self()],
|
||||||
|
StartFunc = {supervisor, start_link, [tcap_components_sup, ChildArgs]},
|
||||||
ChildSpec = {ChildName, StartFunc, permanent, infinity,
|
ChildSpec = {ChildName, StartFunc, permanent, infinity,
|
||||||
supervisor, [tcap_components_sup]},
|
supervisor, [tcap_components_sup]},
|
||||||
{ok, CCO} = supervisor:start_child(Supervisor, ChildSpec),
|
{ok, CCO} = supervisor:start_child(Supervisor, ChildSpec),
|
||||||
|
|
Loading…
Reference in New Issue