mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-11 23:54:18 +00:00
Fixed a bug where a downloaded file may have been incomplete when accessed just after downloading
This commit is contained in:
parent
e31a0b11e8
commit
fdeea46c8e
1 changed files with 2 additions and 0 deletions
|
|
@ -79,6 +79,8 @@ struct FallbackDownloadTask : public URL::DownloadTask,
|
|||
downloaded += actual;
|
||||
}
|
||||
|
||||
fileStream->flush();
|
||||
|
||||
if (threadShouldExit() || (stream != nullptr && stream->isError()))
|
||||
error = true;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue