]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
fix: Properly wait for recompression jobs if there is no f subdir
authorJoel Rosdahl <joel@rosdahl.net>
Thu, 10 Nov 2022 09:54:56 +0000 (10:54 +0100)
committerJoel Rosdahl <joel@rosdahl.net>
Thu, 10 Nov 2022 12:20:27 +0000 (13:20 +0100)
src/storage/local/LocalStorage_compress.cpp

index ecb325bc217cce7c075427102fefaa8130534e0f..0e034bc2eb3c2281ff3beeb8723e91827c4604a9 100644 (file)
@@ -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");
   }