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: 688
This commit is contained in:
Alexey Shchepin 2006-12-01 17:19:04 +00:00
parent d5c59d134b
commit 0b281746c2
2 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2006-12-01 Alexey Shchepin <alexey@sevcom.net>
* src/ejabberd_receiver.erl: Bugfix
2006-11-30 Mickael Remond <mickael.remond@process-one.net>
* src/mod_proxy65/mod_proxy65_services.erl: We now try to get the

View File

@ -117,7 +117,12 @@ handle_call({starttls, TLSSocket}, _From,
#state{xml_stream_state = XMLStreamState,
c2s_pid = C2SPid,
max_stanza_size = MaxStanzaSize} = State) ->
xml_stream:close(XMLStreamState),
if
XMLStreamState /= undefined ->
xml_stream:close(XMLStreamState);
true ->
ok
end,
NewXMLStreamState = xml_stream:new(C2SPid, MaxStanzaSize),
NewState = State#state{socket = TLSSocket,
sock_mod = tls,