fix: Race condition when downloading multiple elements from the content store
This commit is contained in:
parent
6cb0d4d7d8
commit
6cf2990808
@ -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 = {};
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user