mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-02 07:35:12 +00:00
Fix crash in session destruction.
Also use rpl::event_stream for downloaderTaskFinished.
This commit is contained in:
@@ -140,7 +140,7 @@ void FileLoader::finishWithBytes(const QByteArray &data) {
|
||||
Platform::File::PostprocessDownloaded(
|
||||
QFileInfo(_file).absoluteFilePath());
|
||||
}
|
||||
_session->downloaderTaskFinished().notify();
|
||||
_session->notifyDownloaderTaskFinished();
|
||||
_updates.fire_done();
|
||||
}
|
||||
|
||||
@@ -440,7 +440,7 @@ bool FileLoader::finalizeResult() {
|
||||
_cacheTag));
|
||||
}
|
||||
}
|
||||
_session->downloaderTaskFinished().notify();
|
||||
_session->notifyDownloaderTaskFinished();
|
||||
_updates.fire_done();
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user