summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--protocols/VKontakte/src/misc.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/protocols/VKontakte/src/misc.cpp b/protocols/VKontakte/src/misc.cpp
index 48375b0280..c9a36f42d6 100644
--- a/protocols/VKontakte/src/misc.cpp
+++ b/protocols/VKontakte/src/misc.cpp
@@ -100,14 +100,16 @@ bool CVkProto::CheckJsonResult(AsyncHttpRequest *pReq, NETLIBHTTPREQUEST *reply,
ConnectionFailed(LOGINERR_WRONGPASSWORD);
else if (iErrorCode == 14) // captcha
ApplyCaptcha(pReq, pError);
+ else if (iErrorCode == 6) // Too many requests per second
+ pReq->bNeedsRestart = true;
return iErrorCode == 0;
}
void CVkProto::OnReceiveSmth(NETLIBHTTPREQUEST *reply, AsyncHttpRequest *pReq)
{
JSONROOT pRoot;
- JSONNODE *Resp = CheckJsonResponse(pReq, reply, pRoot);
- debugLogA("CVkProto::OnReceiveSmth %s", json_as_string(Resp));
+ JSONNODE *pResponse = CheckJsonResponse(pReq, reply, pRoot);
+ debugLogA("CVkProto::OnReceiveSmth %s", json_as_string(pResponse));
}