Skip to content

Commit

Permalink
Revert reconnect hook for redis-3.x
Browse files Browse the repository at this point in the history
  • Loading branch information
take-five committed Apr 8, 2013
1 parent dbd671b commit 49a2a0b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/resque/integration/engine.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# coding: utf-8

require 'redis/version'
require 'rails/engine'
require 'active_support/core_ext/string/inflections'

Expand All @@ -26,7 +27,9 @@ class Engine < Rails::Engine
Resque.redis.namespace = redis.namespace

# Reconnect on each fork
Resque.after_fork { Resque.redis.client.reconnect }
if Redis::VERSION < '3.0.0'
Resque.after_fork { Resque.redis.client.reconnect }
end
end

initializer 'resque-integration.failure_notifier' do
Expand Down

0 comments on commit 49a2a0b

Please sign in to comment.