lib/pears/provider/subscription.rb in pears-0.0.6 vs lib/pears/provider/subscription.rb in pears-0.0.7

- old
+ new

@@ -46,14 +46,15 @@ private def subscribe @subscription = Thread.new do - connection.subscribe(@channel) do |on| + connection.subscribe(channel) do |on| on.message do |channel, message| reload end end + puts "Redis connection died!" end end def connection @connection ||= establish_connection