lib/blather/stream/component.rb in blather-0.8.3 vs lib/blather/stream/component.rb in blather-0.8.4
- old
+ new
@@ -24,9 +24,14 @@
def start
@parser = Parser.new self
send "<stream:stream to='#{@jid}' xmlns='#{NAMESPACE}' xmlns:stream='#{STREAM_NS}'>"
end
+
+ def cleanup
+ @parser.finish if @parser
+ super
+ end
end #Client
end #Stream
end #Blather