Skip to content

Commit

Permalink
Shutdown thread pool after stopping media scanning and indexing
Browse files Browse the repository at this point in the history
  • Loading branch information
kagemomiji committed Apr 30, 2024
1 parent 7ca63ba commit ac4af77
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -230,12 +230,11 @@ public synchronized void scanLibrary() {
setMediaScanning(false);
})
.thenRunAsync(() -> playlistFileService.importPlaylists(), pool)
.whenComplete((r,e) -> {
pool.shutdown();
})
.whenComplete((r,e) -> {
indexManager.stopIndexing(statistics);
LOG.info("Indexing complete.");
setScanning(false);
pool.shutdown();
});
}

Expand Down

0 comments on commit ac4af77

Please sign in to comment.