From e6dce54eeeedb43855b694c921b97c5119deef32 Mon Sep 17 00:00:00 2001 From: Sergey Bolhovskoy Date: Mon, 4 Apr 2016 06:54:11 +0000 Subject: VKontakte: add VKlang to options remove unused title icon cosmetic fixes git-svn-id: http://svn.miranda-ng.org/main/trunk@16582 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/VKontakte/src/vk_queue.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'protocols/VKontakte/src/vk_queue.cpp') diff --git a/protocols/VKontakte/src/vk_queue.cpp b/protocols/VKontakte/src/vk_queue.cpp index 2f969937fc..a89f69ced3 100644 --- a/protocols/VKontakte/src/vk_queue.cpp +++ b/protocols/VKontakte/src/vk_queue.cpp @@ -81,7 +81,7 @@ void CVkProto::ExecuteRequest(AsyncHttpRequest *pReq) } debugLogA("CVkProto::ExecuteRequest pReq->bNeedsRestart = %d", (int)pReq->bNeedsRestart); - if (!reply) + if (!reply && pReq->m_bApiReq) m_hAPIConnection = NULL; } while (pReq->bNeedsRestart && !m_bTerminated); @@ -94,11 +94,12 @@ AsyncHttpRequest* CVkProto::Push(AsyncHttpRequest *pReq, int iTimeout) { debugLogA("CVkProto::Push"); pReq->timeout = iTimeout; - if (pReq->m_bApiReq) - { - if (m_VKLang != nullptr) pReq << TCHAR_PARAM("lang", m_VKLang); + if (pReq->m_bApiReq) { pReq << VER_API; + if (!IsEmpty(m_VKLang)) + pReq << TCHAR_PARAM("lang", m_VKLang); } + { mir_cslock lck(m_csRequestsQueue); m_arRequestsQueue.insert(pReq); @@ -124,7 +125,6 @@ void CVkProto::WorkerThread(void*) m_szAccessToken = NULL; } - if (m_szAccessToken != NULL) // try to receive a response from server RetrieveMyInfo(); -- cgit v1.2.3