mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +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;
|
||||
_ ->
|
||||
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,
|
||||
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,
|
||||
ok.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user