Fix crash in streaming+loading of a document.

This commit is contained in:
John Preston 2020-06-04 12:16:44 +04:00
parent f581a15b6e
commit bfafdd5b38
1 changed files with 2 additions and 0 deletions

View File

@ -65,6 +65,8 @@ StreamedFileDownloader::StreamedFileDownloader(
StreamedFileDownloader::~StreamedFileDownloader() {
if (!_finished) {
cancel();
} else {
_reader->cancelForDownloader(this);
}
}