fix: Content store downloads getting stuck sometimes

This commit is contained in:
WerWolv
2024-06-27 19:54:45 +02:00
parent 301e8c5a96
commit 8672a2cfe0

View File

@@ -207,10 +207,13 @@ namespace hex::plugin::builtin {
m_download.wait();
while (m_download.wait_for(100ms) != std::future_status::ready) {
while (m_download.valid() && m_download.wait_for(100ms) != std::future_status::ready) {
task.update();
}
entry.hasUpdate = false;
entry.downloading = false;
task.increment();
}
}
@@ -324,7 +327,7 @@ namespace hex::plugin::builtin {
return false;
}
return true;
return downloading;
}
bool ViewStore::remove(const paths::impl::DefaultPath *pathType, const std::string &fileName) {