From: Joel Rosdahl Date: Thu, 10 Nov 2022 09:54:56 +0000 (+0100) Subject: fix: Properly wait for recompression jobs if there is no f subdir X-Git-Tag: v4.7.4~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8c45cb1fe847d1ba76c7719b8ad6aeb9f9445f28;p=thirdparty%2Fccache.git fix: Properly wait for recompression jobs if there is no f subdir --- diff --git a/src/storage/local/LocalStorage_compress.cpp b/src/storage/local/LocalStorage_compress.cpp index ecb325bc2..0e034bc2e 100644 --- a/src/storage/local/LocalStorage_compress.cpp +++ b/src/storage/local/LocalStorage_compress.cpp @@ -234,6 +234,9 @@ LocalStorage::recompress(const std::optional 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"); }