Fix: race-conditions in GUI updates when downloading HTTP files (#11639)

This commit is contained in:
Patric Stout
2024-01-02 22:05:25 +01:00
committed by GitHub
parent 344bdafb53
commit aef49e9933
8 changed files with 224 additions and 39 deletions

View File

@@ -95,7 +95,7 @@ protected:
void OnDownloadComplete(ContentID cid) override;
void OnFailure() override;
void OnReceiveData(const char *data, size_t length) override;
void OnReceiveData(std::unique_ptr<char[]> data, size_t length) override;
bool IsCancelled() const override;
bool BeforeDownload();