mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-04 08:35:21 +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();
|
_window.reset();
|
||||||
|
|
||||||
// Some MTP requests can be cancelled from data clearing.
|
// Some MTP requests can be cancelled from data clearing.
|
||||||
|
_delayedDestroyedLoaders.clear();
|
||||||
App::clearHistories();
|
App::clearHistories();
|
||||||
authSessionDestroy();
|
authSessionDestroy();
|
||||||
_delayedDestroyedLoaders.clear();
|
|
||||||
|
|
||||||
_mtproto.reset();
|
_mtproto.reset();
|
||||||
_mtprotoForKeysDestroy.reset();
|
_mtprotoForKeysDestroy.reset();
|
||||||
|
Reference in New Issue
Block a user