1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00

Fix thread leak, fixes #2598

This commit is contained in:
Mike Perham 2015-10-09 12:31:30 -07:00
parent 76e823a8b1
commit d62ee8f999

View file

@ -132,7 +132,7 @@ module Sidekiq
# get handle to the underlying thread performing work for a processor # get handle to the underlying thread performing work for a processor
# so we have it call us and tell us. # so we have it call us and tell us.
def real_thread(proxy_id, thr) def real_thread(proxy_id, thr)
@threads[proxy_id] = thr @threads[proxy_id] = thr if thr.alive?
end end
PROCTITLES = [ PROCTITLES = [