diff --git a/src/sfizz/FilePool.cpp b/src/sfizz/FilePool.cpp index cb7faa47..056c76d6 100644 --- a/src/sfizz/FilePool.cpp +++ b/src/sfizz/FilePool.cpp @@ -485,7 +485,7 @@ void sfz::FilePool::dispatchingJob() noexcept // Clear finished jobs swapAndPopAll(loadingJobs, [](std::future& future) { - return future.wait_for(std::chrono::seconds(0)) == std::future_status::ready; + return is_ready(future); }); } }