summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElzorFox <elzorfox@ya.ru>2025-06-05 09:01:04 +0500
committerElzorFox <elzorfox@ya.ru>2025-06-05 09:01:11 +0500
commit194b2980ac4506b428aedc245fb26d6f5ef116c3 (patch)
tree3a0f0f08cc73e974900581932bfe9d669893e7c6
parent223448d75b2aa2ea525beee96f9cf0fb266d8e73 (diff)
VKontakte: fix ‘freeze online’ on empty response for self-contact data
-rw-r--r--protocols/VKontakte/src/vk_thread.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/protocols/VKontakte/src/vk_thread.cpp b/protocols/VKontakte/src/vk_thread.cpp
index 890701e068..ccd57be40b 100644
--- a/protocols/VKontakte/src/vk_thread.cpp
+++ b/protocols/VKontakte/src/vk_thread.cpp
@@ -271,8 +271,10 @@ void CVkProto::OnReceiveMyInfo(MHttpResponse *reply, AsyncHttpRequest *pReq)
JSONNode jnRoot;
const JSONNode &jnResponse = CheckJsonResponse(pReq, reply, jnRoot);
- if (!jnResponse)
+ if (!jnResponse) {
+ ConnectionFailed(LOGINERR_NOSERVER);
return;
+ }
const JSONNode &jnUser = *(jnResponse.begin());