lib/blather/stream.rb in blather-0.3.3 vs lib/blather/stream.rb in blather-0.3.4

- old
+ new

@@ -75,11 +75,14 @@ def receive_data(data) # :nodoc: LOG.debug "\n#{'-'*30}\n" LOG.debug "<< #{data}" @parser.receive_data data + rescue ParseWarning => e + @client.receive_data e rescue ParseError => e @error = e + send "<stream:error><xml-not-well-formed xmlns='urn:ietf:params:xml:ns:xmpp-streams'/></stream:error>" stop end ## # Called by EM when the connection is closed