Start: Apply reviewer suggestion

Co-authored-by: Pieter Hijma <[email protected]>
This commit is contained in:
Chris Hennes
2025-04-21 21:21:52 +02:00
committed by Benjamin Nauck
co-authored by Pieter Hijma
parent 42cd4d76f2
commit 4428ba3bf2
+3 -1
View File
@@ -57,7 +57,9 @@ void ThumbnailSource::run()
{
_thumbnailPath = getPathToCachedThumbnail(_file);
if (!useCachedThumbnail(_thumbnailPath, _file)) {
setupF3D(); // Go through the mutex to ensure data is not stale
// Go through the mutex to ensure data is not stale.
// Contention on the lock is diminished because of first checking the cache.
setupF3D();
if (_f3d.major < 2) {
return;
}