25
1
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:
Alexey Shchepin 2003-01-03 07:51:17 +00:00
parent 44797c9524
commit cdc9b9f38d

View File

@ -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.