ruby-amqp / bunny

Bunny is a popular, easy to use, mature Ruby client for RabbitMQ
Other
1.39k stars 303 forks source link

Update consumer_work_pool.rb #664

Closed pgouv closed 1 year ago

pgouv commented 1 year ago

Fix waiting for shutdown when pool is already shutdown

threads may terminate and call shutdown_conditional.signal before shutdown_conditional.wait. With this fix we check if queue is empty so there is no point in waiting.