mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-07 15:43:55 +02:00
Fix crash in streaming+loading of a document.
This commit is contained in:
parent
f581a15b6e
commit
bfafdd5b38
1 changed files with 2 additions and 0 deletions
|
@ -65,6 +65,8 @@ StreamedFileDownloader::StreamedFileDownloader(
|
||||||
StreamedFileDownloader::~StreamedFileDownloader() {
|
StreamedFileDownloader::~StreamedFileDownloader() {
|
||||||
if (!_finished) {
|
if (!_finished) {
|
||||||
cancel();
|
cancel();
|
||||||
|
} else {
|
||||||
|
_reader->cancelForDownloader(this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue