mirror of https://github.com/procxx/kepka.git
Fix crash in streaming+loading of a document.
This commit is contained in:
parent
f581a15b6e
commit
bfafdd5b38
|
@ -65,6 +65,8 @@ StreamedFileDownloader::StreamedFileDownloader(
|
||||||
StreamedFileDownloader::~StreamedFileDownloader() {
|
StreamedFileDownloader::~StreamedFileDownloader() {
|
||||||
if (!_finished) {
|
if (!_finished) {
|
||||||
cancel();
|
cancel();
|
||||||
|
} else {
|
||||||
|
_reader->cancelForDownloader(this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue