mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-28 07:47:03 -05:00
fix: Content store downloads getting stuck sometimes
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user