* src/ejabberd_listener.erl (start_listener): Revert SVN r1260.

SVN Revision: 1290
This commit is contained in:
Badlop 2008-04-11 15:47:44 +00:00
parent b994e4bab2
commit ab9b30c4d4
2 changed files with 4 additions and 15 deletions

View File

@ -1,3 +1,7 @@
2008-04-11 Badlop <badlop@process-one.net>
* src/ejabberd_listener.erl (start_listener): Revert SVN r1260.
2008-04-11 Alexey Shchepin <alexey@process-one.net>
* src/ejabberd_config.erl: Removed a dependency on string:to_upper

View File

@ -130,21 +130,6 @@ accept(ListenSocket, Module, Opts) ->
end.
start_listener(Port, Module, Opts) ->
start_module_sup(Module),
start_listener_sup(Port, Module, Opts).
start_module_sup(Module) ->
Proc = gen_mod:get_module_proc("sup", Module),
ChildSpec =
{Proc,
{ejabberd_tmp_sup, start_link, [Proc, Module]},
permanent,
infinity,
supervisor,
[ejabberd_tmp_sup]},
supervisor:start_child(ejabberd_sup, ChildSpec).
start_listener_sup(Port, Module, Opts) ->
ChildSpec = {Port,
{?MODULE, start, [Port, Module, Opts]},
transient,