1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00
This commit is contained in:
Mike Perham 2015-10-07 09:47:53 -07:00
parent 314a6b64f8
commit da62019b49

View file

@ -88,7 +88,6 @@ module Sidekiq
@in_progress.delete(processor) @in_progress.delete(processor)
if @done if @done
processor.terminate processor.terminate
#shutdown if @in_progress.empty?
else else
@ready << processor @ready << processor
end end
@ -99,9 +98,7 @@ module Sidekiq
def processor_died(processor, reason) def processor_died(processor, reason)
@plock.synchronize do @plock.synchronize do
@in_progress.delete(processor) @in_progress.delete(processor)
if @done unless @done
#shutdown if @in_progress.empty?
else
p = Processor.new(self) p = Processor.new(self)
p.start p.start
@ready << p @ready << p