mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-20 16:15:59 +01:00
*** empty log message ***
SVN Revision: 26
This commit is contained in:
parent
44797c9524
commit
cdc9b9f38d
@ -326,16 +326,16 @@ terminate(Reason, StateName, StateData) ->
|
|||||||
ok;
|
ok;
|
||||||
_ ->
|
_ ->
|
||||||
ejabberd_sm:close_session(StateData#state.user,
|
ejabberd_sm:close_session(StateData#state.user,
|
||||||
StateData#state.resource)
|
StateData#state.resource),
|
||||||
|
From = {StateData#state.user,
|
||||||
|
StateData#state.server,
|
||||||
|
StateData#state.resource},
|
||||||
|
Packet = {xmlelement, "presence", [{"type", "unavailable"}], []},
|
||||||
|
ejabberd_sm:unset_presence(StateData#state.user,
|
||||||
|
StateData#state.resource),
|
||||||
|
presence_broadcast(From, StateData#state.pres_a, Packet),
|
||||||
|
presence_broadcast(From, StateData#state.pres_i, Packet)
|
||||||
end,
|
end,
|
||||||
From = {StateData#state.user,
|
|
||||||
StateData#state.server,
|
|
||||||
StateData#state.resource},
|
|
||||||
Packet = {xmlelement, "presence", [{"type", "unavailable"}], []},
|
|
||||||
ejabberd_sm:unset_presence(StateData#state.user,
|
|
||||||
StateData#state.resource),
|
|
||||||
presence_broadcast(From, StateData#state.pres_a, Packet),
|
|
||||||
presence_broadcast(From, StateData#state.pres_i, Packet),
|
|
||||||
StateData#state.sender ! close,
|
StateData#state.sender ! close,
|
||||||
ok.
|
ok.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user