Version 1.0.29: Fix crash on app quit.

Some cleanup actions in App::clearHistories() queue file loader
destructions that should be completed before MTProto is reset.
This commit is contained in:
John Preston 2017-04-05 13:39:31 +03:00
parent 252a6f9d5a
commit 7b7df23e3b

View File

@ -696,8 +696,8 @@ void Messenger::prepareToDestroy() {
_window.reset();
// Some MTP requests can be cancelled from data clearing.
_delayedDestroyedLoaders.clear();
App::clearHistories();
_delayedDestroyedLoaders.clear();
authSessionDestroy();
_mtproto.reset();