mirror of
https://github.com/processone/ejabberd.git
synced 2025-01-03 18:02:28 +01:00
Remove receiver's supervisor
This commit is contained in:
parent
1a32f20c07
commit
3bdd5d0d25
@ -76,9 +76,8 @@ start(Socket, SockMod, Shaper) ->
|
||||
non_neg_integer() | infinity) -> undefined | pid().
|
||||
|
||||
start(Socket, SockMod, Shaper, MaxStanzaSize) ->
|
||||
{ok, Pid} =
|
||||
supervisor:start_child(ejabberd_receiver_sup,
|
||||
[Socket, SockMod, Shaper, MaxStanzaSize]),
|
||||
{ok, Pid} = ?GEN_SERVER:start(ejabberd_receiver,
|
||||
[Socket, SockMod, Shaper, MaxStanzaSize], []),
|
||||
Pid.
|
||||
|
||||
-spec change_shaper(pid(), shaper:shaper()) -> ok.
|
||||
|
@ -97,14 +97,6 @@ init([]) ->
|
||||
infinity,
|
||||
supervisor,
|
||||
[ejabberd_listener]},
|
||||
ReceiverSupervisor =
|
||||
{ejabberd_receiver_sup,
|
||||
{ejabberd_tmp_sup, start_link,
|
||||
[ejabberd_receiver_sup, ejabberd_receiver]},
|
||||
permanent,
|
||||
infinity,
|
||||
supervisor,
|
||||
[ejabberd_tmp_sup]},
|
||||
S2SInSupervisor =
|
||||
{ejabberd_s2s_in_sup,
|
||||
{ejabberd_tmp_sup, start_link,
|
||||
@ -162,7 +154,6 @@ init([]) ->
|
||||
S2S,
|
||||
Local,
|
||||
Captcha,
|
||||
ReceiverSupervisor,
|
||||
S2SInSupervisor,
|
||||
S2SOutSupervisor,
|
||||
ServiceSupervisor,
|
||||
|
Loading…
Reference in New Issue
Block a user