1
0
Fork 0
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:
hogliux 2016-12-12 16:46:51 +00:00
parent e31a0b11e8
commit fdeea46c8e

View file

@ -79,6 +79,8 @@ struct FallbackDownloadTask : public URL::DownloadTask,
downloaded += actual;
}
fileStream->flush();
if (threadShouldExit() || (stream != nullptr && stream->isError()))
error = true;