mirror of
https://github.com/processone/ejabberd.git
synced 2025-01-03 18:02:28 +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>
|
2008-04-11 Alexey Shchepin <alexey@process-one.net>
|
||||||
|
|
||||||
* src/ejabberd_config.erl: Removed a dependency on string:to_upper
|
* src/ejabberd_config.erl: Removed a dependency on string:to_upper
|
||||||
|
@ -130,21 +130,6 @@ accept(ListenSocket, Module, Opts) ->
|
|||||||
end.
|
end.
|
||||||
|
|
||||||
start_listener(Port, Module, Opts) ->
|
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,
|
ChildSpec = {Port,
|
||||||
{?MODULE, start, [Port, Module, Opts]},
|
{?MODULE, start, [Port, Module, Opts]},
|
||||||
transient,
|
transient,
|
||||||
|
Loading…
Reference in New Issue
Block a user