mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
Add support of section 4.9.3.16 on rfc6120
This commit is contained in:
parent
e903348dd3
commit
7d626b4f5c
@ -489,9 +489,13 @@ host_up(Host) ->
|
|||||||
-spec host_down(binary()) -> ok.
|
-spec host_down(binary()) -> ok.
|
||||||
host_down(Host) ->
|
host_down(Host) ->
|
||||||
Mod = get_sm_backend(Host),
|
Mod = get_sm_backend(Host),
|
||||||
|
Err = case ejabberd_cluster:get_nodes() of
|
||||||
|
[Node] when Node == node() -> xmpp:serr_system_shutdown();
|
||||||
|
_ -> xmpp:serr_reset()
|
||||||
|
end,
|
||||||
lists:foreach(
|
lists:foreach(
|
||||||
fun(#session{sid = {_, Pid}}) when node(Pid) == node() ->
|
fun(#session{sid = {_, Pid}}) when node(Pid) == node() ->
|
||||||
ejabberd_c2s:send(Pid, xmpp:serr_system_shutdown()),
|
ejabberd_c2s:send(Pid, Err),
|
||||||
ejabberd_c2s:stop(Pid);
|
ejabberd_c2s:stop(Pid);
|
||||||
(_) ->
|
(_) ->
|
||||||
ok
|
ok
|
||||||
|
Loading…
Reference in New Issue
Block a user