summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
authorElzorFox <elzorfox@ya.ru>2017-03-19 13:53:04 +0500
committerElzorFox <elzorfox@ya.ru>2017-03-19 13:53:04 +0500
commit71a8b0d202f89ae3a53fa3978b2588e79511da1b (patch)
treeda996874bc36332d5e18ddeb5921b93b1e3754e4 /protocols
parentca65019975d21b5cd96b71499b6d675c3b11e2a9 (diff)
VKontakte: more correct fix for sending unneeded GetServerHistory requestes
Diffstat (limited to 'protocols')
-rw-r--r--protocols/VKontakte/src/vk_history.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/VKontakte/src/vk_history.cpp b/protocols/VKontakte/src/vk_history.cpp
index 305182ee81..8d4dcac8fd 100644
--- a/protocols/VKontakte/src/vk_history.cpp
+++ b/protocols/VKontakte/src/vk_history.cpp
@@ -274,7 +274,7 @@ void CVkProto::OnReceiveHistoryMessages(NETLIBHTTPREQUEST *reply, AsyncHttpReque
int once = jnResponse["once"].as_int();
int iRCount = jnResponse["rcount"].as_int();
- if (count == iRCount && once == 0)
+ if (count == iRCount && once == 0 && iRCount > 0)
GetServerHistory(param->hContact, param->iCount + count, iRCount, iTime, param->iMsgID);
else {
mir_cslock lck(m_csLoadHistoryTask);