mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Fix crash in still downloaded ~DocumentData.
This commit is contained in:
@@ -43,7 +43,11 @@ FileLoader::FileLoader(
|
||||
Expects(!_filename.isEmpty() || (_size <= Storage::kMaxFileInMemory));
|
||||
}
|
||||
|
||||
FileLoader::~FileLoader() = default;
|
||||
FileLoader::~FileLoader() {
|
||||
if (!_finished) {
|
||||
cancel();
|
||||
}
|
||||
}
|
||||
|
||||
Main::Session &FileLoader::session() const {
|
||||
return *_session;
|
||||
|
Reference in New Issue
Block a user