Check for isActive flag before going to sleep in JobAcqusitionThread

Description

When JobAcquisitionThread#shutdown is called while jobs are currently processed, the acqusition thread will still go to sleep after the job processing. This is unnecessary and leads to inconvenient delays during shutdown (especially noticeable when running many unit tests that each start/stop Activiti).

Suggested code (only one code change required -> include isActive flag in the if statement):

Current code:

Assignee

Daniel Meyer (camunda)

Reporter

Etienne Studer

Labels

None

Fix versions

Priority

Major
Configure