transaction supervisor: properly convert name from list to atom

This commit is contained in:
Harald Welte 2012-01-29 23:22:54 +01:00
parent 992982b298
commit 983e81e9e6
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ gen_tsm_childspec(NSAP, USAP, TID, TCO) ->
{Name, StartFunc, permanent, 1000, worker, [tcap_tsm_fsm]}.
gen_dha_sup_childspec(_NSAP, User, LocalTID, TCO) ->
Name = "tcap_dha_" ++ integer_to_list(LocalTID),
Name = list_to_atom("tcap_dialogue_sup_" ++ integer_to_list(LocalTID)),
StartArgs = [{local, Name}, tcap_dialogue_sup, {User, LocalTID, TCO}],
StartFunc = {supervisor, start_link, StartArgs},
{dha_sup, StartFunc, permanent, 1000, worker, [tcap_dialogue_sup]}.