mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
Fix issue with calling dead actor if a worker finishes while shutting down.
This commit is contained in:
parent
8608f5c562
commit
640d1596c3
1 changed files with 1 additions and 1 deletions
|
@ -72,10 +72,10 @@ module Sidekiq
|
|||
watchdog('sidekiq processor_done crashed!') do
|
||||
@done_callback.call(processor) if @done_callback
|
||||
@busy.delete(processor)
|
||||
processor.msg = processor.queue = nil
|
||||
if stopped?
|
||||
processor.terminate if processor.alive?
|
||||
else
|
||||
processor.msg = processor.queue = nil
|
||||
@ready << processor
|
||||
end
|
||||
dispatch
|
||||
|
|
Loading…
Reference in a new issue