From 71a8b0d202f89ae3a53fa3978b2588e79511da1b Mon Sep 17 00:00:00 2001 From: ElzorFox Date: Sun, 19 Mar 2017 13:53:04 +0500 Subject: VKontakte: more correct fix for sending unneeded GetServerHistory requestes --- protocols/VKontakte/src/vk_history.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'protocols/VKontakte/src/vk_history.cpp') 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); -- cgit v1.2.3