mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-22 17:28:25 +01:00
* src/ejabberd_listener.erl (start_listener): Revert SVN r1260.
SVN Revision: 1290
This commit is contained in:
parent
b994e4bab2
commit
ab9b30c4d4
@ -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
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user