mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
cleanup
This commit is contained in:
parent
314a6b64f8
commit
da62019b49
1 changed files with 1 additions and 4 deletions
|
@ -88,7 +88,6 @@ module Sidekiq
|
|||
@in_progress.delete(processor)
|
||||
if @done
|
||||
processor.terminate
|
||||
#shutdown if @in_progress.empty?
|
||||
else
|
||||
@ready << processor
|
||||
end
|
||||
|
@ -99,9 +98,7 @@ module Sidekiq
|
|||
def processor_died(processor, reason)
|
||||
@plock.synchronize do
|
||||
@in_progress.delete(processor)
|
||||
if @done
|
||||
#shutdown if @in_progress.empty?
|
||||
else
|
||||
unless @done
|
||||
p = Processor.new(self)
|
||||
p.start
|
||||
@ready << p
|
||||
|
|
Loading…
Reference in a new issue