diff options
author | ElzorFox <elzorfox@ya.ru> | 2017-02-16 16:34:49 +0500 |
---|---|---|
committer | ElzorFox <elzorfox@ya.ru> | 2017-02-16 16:34:49 +0500 |
commit | bd98ec9efc4999f9a764c53566ca2e503bfe68d8 (patch) | |
tree | 0c21dfc7fa91d24c418fac08f4c03096534311d6 /protocols/VKontakte/src | |
parent | 79f59df24f845aa39955a0a0cf00d8d2038fff85 (diff) |
VKontakte: PoolServer down fix
Diffstat (limited to 'protocols/VKontakte/src')
-rw-r--r-- | protocols/VKontakte/src/misc.cpp | 5 |
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;
}
|