mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-02 23:45:44 +00:00
Finish working with localstorage before ~AuthSession.
This commit is contained in:
@@ -103,6 +103,10 @@ Application::~Application() {
|
||||
_window.reset();
|
||||
_mediaView.reset();
|
||||
|
||||
// This can call writeMap() that serializes AuthSession.
|
||||
// In case it gets called after authSessionDestroy() we get missing data.
|
||||
Local::finish();
|
||||
|
||||
// Some MTP requests can be cancelled from data clearing.
|
||||
authSessionDestroy();
|
||||
|
||||
@@ -126,7 +130,6 @@ Application::~Application() {
|
||||
Media::Player::finish(_audio.get());
|
||||
style::stopManager();
|
||||
|
||||
Local::finish();
|
||||
Global::finish();
|
||||
ThirdParty::finish();
|
||||
|
||||
|
Reference in New Issue
Block a user