Skip to content

Commit

Permalink
Fix thread leak, fixes #2598
Browse files Browse the repository at this point in the history
  • Loading branch information
mperham committed Oct 9, 2015
1 parent 76e823a commit d62ee8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sidekiq/manager.rb
Expand Up @@ -132,7 +132,7 @@ def assign(work)
# 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 = [
Expand Down

0 comments on commit d62ee8f

Please sign in to comment.