Timestamp:
2023-08-24T17:23:11+02:00 (15 months ago)
Author:
taylor.smock
Message:

Fix #23140: RejectedExecutionException when MultiFetchServerObjectReader is cancelled while creating download jobs

This was caused by a race condition.
User starts a download, and cancels it as jobs are submitted to the thread pool.
The next job to be submitted will cause a RejectedExecutionException. In order
to fix this, we ensure that we shutdown the thread pool inside a synchronized
block, and add jobs to the executor inside a synchronized block.

Location:
trunk/test/unit/org/openstreetmap/josm/testutils/annotations
Files:
2 added

Note: See TracChangeset for help on using the changeset viewer.