Make it a tiny bit more efficient

This commit is contained in:
Jean Pierre Cimalando 2020-10-21 04:00:52 +02:00
parent 0e24daf26d
commit 10565e99be

View file

@ -496,7 +496,7 @@ void sfz::FilePool::dispatchingJob() noexcept
std::lock_guard<std::mutex> guard { loadingJobsMutex };
if (filesToLoad.try_pop(queuedData)) {
if (!queuedData.id.lock()) {
if (queuedData.id.expired()) {
// file ID was nulled, it means the region was deleted, ignore
}
else