lib/blather/client/client.rb in blather-0.5.9 vs lib/blather/client/client.rb in blather-0.5.10

- old
+ new

@@ -62,10 +62,10 @@ setup_initial_handlers end # Check whether the client is currently connected. def connected? - setup? && !@stream.stopped? + setup? && !@stream.nil? && !@stream.stopped? end # Get the current status. Taken from the `state` attribute of Status def status @status.state