From dd4d45fd286282f92021b08aa926b8a108451cd8 Mon Sep 17 00:00:00 2001 From: Evgeniy Khramtsov Date: Wed, 27 Dec 2017 18:49:25 +0300 Subject: [PATCH] Fix a regression in xmpp_socket --- src/xmpp_socket.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xmpp_socket.erl b/src/xmpp_socket.erl index 1ee021318..8e2204731 100644 --- a/src/xmpp_socket.erl +++ b/src/xmpp_socket.erl @@ -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),