1
0
Fork 0
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:
Mike Perham 2012-03-08 12:03:58 -08:00
parent 8608f5c562
commit 640d1596c3

View file

@ -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