mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-01 07:05:13 +00:00
Fix crash in streaming+loading of a document.
This commit is contained in:
@@ -65,6 +65,8 @@ StreamedFileDownloader::StreamedFileDownloader(
|
|||||||
StreamedFileDownloader::~StreamedFileDownloader() {
|
StreamedFileDownloader::~StreamedFileDownloader() {
|
||||||
if (!_finished) {
|
if (!_finished) {
|
||||||
cancel();
|
cancel();
|
||||||
|
} else {
|
||||||
|
_reader->cancelForDownloader(this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user