jmestwa-coder opened a new pull request, #692: URL: https://github.com/apache/logging-log4cxx/pull/692
## Summary Fix a scheduler state issue where the periodic worker could stop permanently after the last registered task was removed. ## Root Cause When the worker removed the final task from the queue, `doPeriodicTasks()` returned immediately from the empty-queue path without clearing `threadIsActive`. As a result: * The worker thread exited. * `threadIsActive` remained `true`. * Future calls to `addPeriodicTask()` assumed a worker was still running. * New tasks were added and notified, but no worker existed to execute them. ## Fix Set `threadIsActive = false` before returning from the empty-queue exit path. This allows subsequent task registrations to correctly restart the periodic worker. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
