mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 22:55:11 +00:00
Version 1.0.29: Fix crash on app quit.
Destroy queued file loaders before destroying AuthSession, because they have references to Downloader which is owned by AuthSession.
This commit is contained in:
@@ -696,9 +696,9 @@ void Messenger::prepareToDestroy() {
|
||||
_window.reset();
|
||||
|
||||
// Some MTP requests can be cancelled from data clearing.
|
||||
_delayedDestroyedLoaders.clear();
|
||||
App::clearHistories();
|
||||
authSessionDestroy();
|
||||
_delayedDestroyedLoaders.clear();
|
||||
|
||||
_mtproto.reset();
|
||||
_mtprotoForKeysDestroy.reset();
|
||||
|
Reference in New Issue
Block a user