Start: Apply reviewer suggestion

Co-authored-by: Pieter Hijma <pieterhijma@users.noreply.github.com>
This commit is contained in:
Chris Hennes
2025-04-21 09:53:03 -05:00
committed by Benjamin Nauck
parent 42cd4d76f2
commit 4428ba3bf2

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;
}