summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Rosdahl <joel@rosdahl.net>2022-11-10 10:54:56 +0100
committerJoel Rosdahl <joel@rosdahl.net>2022-11-10 13:20:27 +0100
commit8c45cb1fe847d1ba76c7719b8ad6aeb9f9445f28 (patch)
tree1d1a919e705a2a7e5b3fc1f867a4f766e2b0d67a
parenta33936b5e0bb61dedf9244056be167eb90678dd9 (diff)
downloadccache-8c45cb1fe847d1ba76c7719b8ad6aeb9f9445f28.tar.gz
fix: Properly wait for recompression jobs if there is no f subdir
-rw-r--r--src/storage/local/LocalStorage_compress.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/storage/local/LocalStorage_compress.cpp b/src/storage/local/LocalStorage_compress.cpp
index ecb325bc..0e034bc2 100644
--- a/src/storage/local/LocalStorage_compress.cpp
+++ b/src/storage/local/LocalStorage_compress.cpp
@@ -234,6 +234,9 @@ LocalStorage::recompress(const std::optional<int8_t> level,
},
progress_receiver);
+ // In case there was no f subdir, shut down the thread pool now.
+ thread_pool.shut_down();
+
if (isatty(STDOUT_FILENO)) {
PRINT_RAW(stdout, "\n\n");
}