25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-24 16:23:40 +01:00

* src/ejabberd_receiver.erl: Bugfix

SVN Revision: 692
This commit is contained in:
Alexey Shchepin 2006-12-08 20:48:26 +00:00
parent bb2ffb8765
commit 2bc550aafc
2 changed files with 8 additions and 1 deletions

View File

@ -1,5 +1,7 @@
2006-12-08 Alexey Shchepin <alexey@sevcom.net> 2006-12-08 Alexey Shchepin <alexey@sevcom.net>
* src/ejabberd_receiver.erl: Bugfix
* src/ejabberd_c2s.erl: Bugfix * src/ejabberd_c2s.erl: Bugfix
2006-12-05 Alexey Shchepin <alexey@sevcom.net> 2006-12-05 Alexey Shchepin <alexey@sevcom.net>

View File

@ -236,7 +236,12 @@ handle_info(_Info, State) ->
terminate(_Reason, #state{xml_stream_state = XMLStreamState, terminate(_Reason, #state{xml_stream_state = XMLStreamState,
c2s_pid = C2SPid} = State) -> c2s_pid = C2SPid} = State) ->
xml_stream:close(XMLStreamState), xml_stream:close(XMLStreamState),
gen_fsm:send_event(C2SPid, closed), if
C2SPid /= undefined ->
gen_fsm:send_event(C2SPid, closed);
true ->
ok
end,
catch (State#state.sock_mod):close(State#state.socket), catch (State#state.sock_mod):close(State#state.socket),
ok. ok.