summaryrefslogtreecommitdiff
path: root/protocols/VKontakte/src/vk_history.cpp
diff options
context:
space:
mode:
authorElzorFox <elzorfox@ya.ru>2017-03-19 01:36:11 +0500
committerElzorFox <elzorfox@ya.ru>2017-03-19 01:37:22 +0500
commitca65019975d21b5cd96b71499b6d675c3b11e2a9 (patch)
treea57248dfde866cfbcbd85d65b037afe8f78a9d08 /protocols/VKontakte/src/vk_history.cpp
parent46cb46859ce27e2d23da0bcbecbe92da7b349b26 (diff)
VKontakte:
fix sending unneeded GetServerHistory requestes tempory (?) increase timeout between API requests
Diffstat (limited to 'protocols/VKontakte/src/vk_history.cpp')
-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 4f71591353..305182ee81 100644
--- a/protocols/VKontakte/src/vk_history.cpp
+++ b/protocols/VKontakte/src/vk_history.cpp
@@ -116,7 +116,7 @@ void CVkProto::GetServerHistoryLastNDay(MCONTACT hContact, int NDay)
void CVkProto::GetServerHistory(MCONTACT hContact, int iOffset, int iCount, int iTime, int iLastMsgId, bool once)
{
debugLogA("CVkProto::GetServerHistory %d %d %d %d %d", iOffset, iCount, iTime, iLastMsgId, (int)once);
- if (!IsOnline())
+ if (!IsOnline() || iCount == 0)
return;
LONG userID = getDword(hContact, "ID", VK_INVALID_USER);