From d62ee8f9993512f26a405e7ac4431815b4230beb Mon Sep 17 00:00:00 2001 From: Mike Perham Date: Fri, 9 Oct 2015 12:31:30 -0700 Subject: [PATCH] Fix thread leak, fixes #2598 --- lib/sidekiq/manager.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sidekiq/manager.rb b/lib/sidekiq/manager.rb index a73f0403..822cd23d 100644 --- a/lib/sidekiq/manager.rb +++ b/lib/sidekiq/manager.rb @@ -132,7 +132,7 @@ module Sidekiq # get handle to the underlying thread performing work for a processor # so we have it call us and tell us. def real_thread(proxy_id, thr) - @threads[proxy_id] = thr + @threads[proxy_id] = thr if thr.alive? end PROCTITLES = [