DEV: Actually disconnect from Redis connections after fork.

DEV: Actually disconnect from Redis connections after fork.

diff --git a/lib/discourse.rb b/lib/discourse.rb
index 8417558..27c28e1 100644
--- a/lib/discourse.rb
+++ b/lib/discourse.rb
@@ -657,7 +657,7 @@ module Discourse
     Discourse.cache.reconnect
     Logster.store.redis.reconnect
     # shuts down all connections in the pool
-    Sidekiq.redis_pool.shutdown { |c| nil }
+    Sidekiq.redis_pool.shutdown { |conn| conn.close  }
     # re-establish
     Sidekiq.redis = sidekiq_redis_config
 

GitHub sha: fe9c8299

1 Like