mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-28 07:47:03 -05:00
fix: Race condition when downloading multiple elements from the content store
This commit is contained in:
@@ -207,7 +207,11 @@ namespace hex::plugin::builtin {
|
||||
continue;
|
||||
|
||||
m_download.wait();
|
||||
this->handleDownloadFinished(category, entry);
|
||||
|
||||
while (m_download.valid()) {
|
||||
std::this_thread::sleep_for(10ms);
|
||||
}
|
||||
|
||||
task.update(progress);
|
||||
}
|
||||
}
|
||||
@@ -369,7 +373,6 @@ namespace hex::plugin::builtin {
|
||||
log::error("Download failed! HTTP Code {}", response.getStatusCode());
|
||||
}
|
||||
|
||||
|
||||
m_download = {};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user