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

Dont srem when empty, fixes #694

This commit is contained in:
Mike Perham 2013-02-08 14:57:01 -08:00
parent a3eb593b21
commit d232844225

View file

@ -130,7 +130,7 @@ module Sidekiq
workers_to_remove = workers.select do |worker_name|
worker_name =~ /:#{process_id}-/
end
conn.srem('workers', workers_to_remove)
conn.srem('workers', workers_to_remove) if !workers_to_remove.empty?
end
logger.debug { "Terminating worker threads" }