diff options
author | ElzorFox <elzorfox@ya.ru> | 2017-03-19 13:53:04 +0500 |
---|---|---|
committer | ElzorFox <elzorfox@ya.ru> | 2017-03-19 13:53:04 +0500 |
commit | 71a8b0d202f89ae3a53fa3978b2588e79511da1b (patch) | |
tree | da996874bc36332d5e18ddeb5921b93b1e3754e4 /protocols/VKontakte/src | |
parent | ca65019975d21b5cd96b71499b6d675c3b11e2a9 (diff) |
VKontakte: more correct fix for sending unneeded GetServerHistory requestes
Diffstat (limited to 'protocols/VKontakte/src')
-rw-r--r-- | protocols/VKontakte/src/vk_history.cpp | 2 |
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);
|