Skip to content

Commit

Permalink
Stop the thread which collect local repository artifacts
Browse files Browse the repository at this point in the history
Signed-off-by: azerr <azerr@redhat.com>
  • Loading branch information
angelozerr authored and vrubezhny committed Jul 29, 2023
1 parent 863a907 commit e724748
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,11 @@ public File findLocalFile(Artifact gav) {
}

public void stop() {
// Stop the thread which collects local repository artifacts
cache
.values()
.forEach(f -> f.cancel(true));
// Close the watch service which tracks the local repository.
if (watchService != null && watchKey != null) {
watchKey.cancel();
try {
Expand Down

0 comments on commit e724748

Please sign in to comment.