Skip to content

Commit

Permalink
Fix image loading becoming stuck upon failure
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom94 committed Apr 18, 2024
1 parent 2132336 commit 4845612
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/Image.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -696,10 +696,6 @@ void BackgroundImagesLoader::enqueue(const fs::path& path, const string& channel
co_await ThreadPool::global().enqueueCoroutine(taskPriority);
auto images = co_await tryLoadImage(taskPriority, path, channelSelector);

if (images.empty()) {
co_return;
}

{
std::lock_guard lock{mPendingLoadedImagesMutex};
mPendingLoadedImages.push({ loadId, shallSelect, images, toReplace });
Expand Down

0 comments on commit 4845612

Please sign in to comment.