mirror of
https://github.com/processone/ejabberd.git
synced 2025-01-03 18:02:28 +01:00
Fix a regression in xmpp_socket
This commit is contained in:
parent
82b3bbf360
commit
dd4d45fd28
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user