summaryrefslogtreecommitdiff
path: root/protocols/VKontakte/src/vk_pollserver.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/VKontakte/src/vk_pollserver.cpp')
-rw-r--r--protocols/VKontakte/src/vk_pollserver.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/protocols/VKontakte/src/vk_pollserver.cpp b/protocols/VKontakte/src/vk_pollserver.cpp
index adaaaaaf83..f3a28c6e21 100644
--- a/protocols/VKontakte/src/vk_pollserver.cpp
+++ b/protocols/VKontakte/src/vk_pollserver.cpp
@@ -78,7 +78,6 @@ void CVkProto::PollUpdates(const JSONNode &jnUpdates)
int msgid, uid, flags, platform;
MCONTACT hContact;
-
for (auto it = jnUpdates.begin(); it != jnUpdates.end(); ++it) {
const JSONNode &jnChild = (*it).as_array();
switch (jnChild[json_index_t(0)].as_int()) {
@@ -96,7 +95,7 @@ void CVkProto::PollUpdates(const JSONNode &jnUpdates)
MessageReadData data(time(NULL), MRD_TYPE_READTIME);
CallService(MS_MESSAGESTATE_UPDATE, hContact, (LPARAM)&data);
}
- else
+ else
SetSrmmReadStatus(hContact);
if (m_vkOptions.bUserForceInvisibleOnActivity)
SetInvisible(hContact);
@@ -267,7 +266,7 @@ void CVkProto::PollingThread(void*)
m_pollingConn = NULL;
debugLogA("CVkProto::PollingThread: leaving");
-
+
if (m_hPollingThread) {
CloseHandle(m_hPollingThread);
m_hPollingThread = NULL;