summaryrefslogtreecommitdiff
path: root/protocols/VKontakte/src
diff options
context:
space:
mode:
authorElzorFox <elzorfox@ya.ru>2017-02-16 16:34:49 +0500
committerElzorFox <elzorfox@ya.ru>2017-02-16 16:34:49 +0500
commitbd98ec9efc4999f9a764c53566ca2e503bfe68d8 (patch)
tree0c21dfc7fa91d24c418fac08f4c03096534311d6 /protocols/VKontakte/src
parent79f59df24f845aa39955a0a0cf00d8d2038fff85 (diff)
VKontakte: PoolServer down fix
Diffstat (limited to 'protocols/VKontakte/src')
-rw-r--r--protocols/VKontakte/src/misc.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/protocols/VKontakte/src/misc.cpp b/protocols/VKontakte/src/misc.cpp
index 47ee7630b4..65efe4b980 100644
--- a/protocols/VKontakte/src/misc.cpp
+++ b/protocols/VKontakte/src/misc.cpp
@@ -258,11 +258,10 @@ JSONNode& CVkProto::CheckJsonResponse(AsyncHttpRequest *pReq, NETLIBHTTPREQUEST
bool CVkProto::CheckJsonResult(AsyncHttpRequest *pReq, const JSONNode &jnNode)
{
debugLogA("CVkProto::CheckJsonResult");
- if (!pReq)
- return false;
if (!jnNode) {
- pReq->m_iErrorCode = VKERR_NO_JSONNODE;
+ if (pReq)
+ pReq->m_iErrorCode = VKERR_NO_JSONNODE;
return false;
}