SCCP SSN Dump: Fix case where we register only for one {SSN, PC} tuple

This commit is contained in:
Harald Welte 2012-01-28 19:17:14 +01:00
parent f633f12730
commit fe4407cb0f
1 changed files with 2 additions and 2 deletions

View File

@ -33,10 +33,10 @@ start_link(Ssns) ->
gen_server:start_link(sccp_ssn_dump, [Ssns], []).
init([Ssn]) when is_tuple(Ssn) ->
init([Ssn]);
init([[Ssn]]);
init([Ssns]) when is_list(Ssns) ->
bind_ssns(Ssns),
{ok, idle, #loop_dat{ssns = Ssns}}.
{ok, #loop_dat{ssns = Ssns}}.
bind_ssns([]) ->
ok;