lib/backburner/connection.rb in backburner-1.4.1 vs lib/backburner/connection.rb in backburner-1.5.0

- old
+ new

@@ -32,10 +32,10 @@ # Determines if the connection to Beanstalk is currently open def connected? begin !!(@beanstalk && @beanstalk.connection && @beanstalk.connection.connection && !@beanstalk.connection.connection.closed?) # Would be nice if beaneater provided a connected? method - rescue => e + rescue false end end # Attempt to reconnect to Beanstalk. Note: the connection will not be watching