Fix a regression in xmpp_socket

This commit is contained in:
Evgeniy Khramtsov 2017-12-27 18:49:25 +03:00
parent 82b3bbf360
commit dd4d45fd28
1 changed files with 2 additions and 2 deletions

View File

@ -183,8 +183,8 @@ compress(#socket_state{receiver = undefined,
end.
reset_stream(#socket_state{xml_stream = XMLStream,
max_stanza_size = MaxStanzaSize} = SocketData)
when XMLStream /= undefined ->
receiver = undefined,
max_stanza_size = MaxStanzaSize} = SocketData) ->
XMLStream1 = try fxml_stream:reset(XMLStream)
catch error:_ ->
close_stream(XMLStream),