diff options
author | George Hazan <ghazan@miranda.im> | 2023-03-29 17:47:15 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2023-03-29 17:47:15 +0300 |
commit | 2a2f15ef946aab0ca453ee10bd44746ffa7e6294 (patch) | |
tree | cc905a46331d565c21fbf85bc25ff961f1a930a5 | |
parent | 7fc55cc54b38ebeebe3e55d47562146e20a11ac8 (diff) |
occasional crash fix
-rw-r--r-- | protocols/Telegram/src/auth.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/Telegram/src/auth.cpp b/protocols/Telegram/src/auth.cpp index d55ca3a436..72f9be8698 100644 --- a/protocols/Telegram/src/auth.cpp +++ b/protocols/Telegram/src/auth.cpp @@ -94,7 +94,7 @@ void CTelegramProto::ProcessAuth(TD::updateAuthorizationState *pObj) pAuthState = std::move(pObj->authorization_state_);
switch (pAuthState->get_id()) {
case TD::authorizationStateReady::ID:
- if (pConnState->get_id() == TD::connectionStateReady::ID)
+ if (pConnState && pConnState->get_id() == TD::connectionStateReady::ID)
OnLoggedIn();
break;
|