From e693e82a396212ac1dd4812def6f6a5e25cb5750 Mon Sep 17 00:00:00 2001 From: Paul Ferrand Date: Sat, 19 Sep 2020 01:17:07 +0200 Subject: [PATCH] The dispatcher was not spinning --- src/sfizz/FilePool.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sfizz/FilePool.cpp b/src/sfizz/FilePool.cpp index ec9dee51..05bd0770 100644 --- a/src/sfizz/FilePool.cpp +++ b/src/sfizz/FilePool.cpp @@ -374,7 +374,7 @@ void sfz::FilePool::loadingJob(QueuedFileData data) noexcept FileData::Status currentStatus = data.data->status.load(); unsigned spinCounter { 0 }; - if (currentStatus == FileData::Status::Invalid) { + while (currentStatus == FileData::Status::Invalid) { // Spin until the state changes if (spinCounter > 1024) { DBG("[sfizz] " << data.id << " is stuck on Invalid? Leaving the load");