2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-30 22:25:12 +00:00

Fix possible crash in auth session destruction.

This commit is contained in:
John Preston
2019-06-17 13:54:00 +02:00
parent e7bdcc4155
commit d9e93fb5cc
4 changed files with 22 additions and 6 deletions

View File

@@ -248,6 +248,10 @@ ApiWrap::ApiWrap(not_null<AuthSession*> session)
});
}
AuthSession &ApiWrap::session() const {
return *_session;
}
void ApiWrap::setupSupportMode() {
if (!_session->supportMode()) {
return;