mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-01-25 08:44:38 +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:
parent
f4d1cdf14d
commit
a1adf2dae6
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user