diff options
author | MikalaiR <nikolay.romanovich@narod.ru> | 2016-03-20 16:57:19 +0000 |
---|---|---|
committer | MikalaiR <nikolay.romanovich@narod.ru> | 2016-03-20 16:57:19 +0000 |
commit | 91996a2f0ab5228acdfac1d0c662d68339a0ed79 (patch) | |
tree | b415191b2169e51f1c37688a8f01a90b54584c17 /protocols/VKontakte/src/vk_queue.cpp | |
parent | 3015b86003db0edc9b1da8707a302cddc36855e5 (diff) |
VK: code cleanup
git-svn-id: http://svn.miranda-ng.org/main/trunk@16518 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/VKontakte/src/vk_queue.cpp')
-rw-r--r-- | protocols/VKontakte/src/vk_queue.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/protocols/VKontakte/src/vk_queue.cpp b/protocols/VKontakte/src/vk_queue.cpp index cc83ceb3b4..2a6bae1e38 100644 --- a/protocols/VKontakte/src/vk_queue.cpp +++ b/protocols/VKontakte/src/vk_queue.cpp @@ -80,8 +80,11 @@ AsyncHttpRequest* CVkProto::Push(AsyncHttpRequest *pReq, int iTimeout) {
debugLogA("CVkProto::Push");
pReq->timeout = iTimeout;
- if (pReq->m_bApiReq && m_VKLang)
- pReq << TCHAR_PARAM("lang", m_VKLang);
+ if (pReq->m_bApiReq)
+ {
+ if (m_VKLang != nullptr) pReq << TCHAR_PARAM("lang", m_VKLang);
+ pReq << VER_API;
+ }
{
mir_cslock lck(m_csRequestsQueue);
m_arRequestsQueue.insert(pReq);
|