summaryrefslogtreecommitdiff
path: root/protocols/VKontakte/src/vk_queue.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-10-24 18:39:52 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-10-24 18:39:52 +0000
commit71445cc324f6c23eb6ac7ac07d78a54cd6fac803 (patch)
treeb76f83f3e8479afa79d9ce009c3c091a0eadaeb3 /protocols/VKontakte/src/vk_queue.cpp
parentd4985f1f0847e896df3cb41c2998e7c3a4c26553 (diff)
VK: fix for a broken login calls chain
git-svn-id: http://svn.miranda-ng.org/main/trunk@6612 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/VKontakte/src/vk_queue.cpp')
-rw-r--r--protocols/VKontakte/src/vk_queue.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/protocols/VKontakte/src/vk_queue.cpp b/protocols/VKontakte/src/vk_queue.cpp
index 782906ce6f..60d115b84b 100644
--- a/protocols/VKontakte/src/vk_queue.cpp
+++ b/protocols/VKontakte/src/vk_queue.cpp
@@ -101,12 +101,11 @@ void CVkProto::WorkerThread(void*)
debugLogA("CVkProto::WorkerThread: entering");
m_bTerminated = m_prevError = false;
m_szAccessToken = getStringA("AccessToken");
- if (m_szAccessToken != NULL) {
+ if (m_szAccessToken != NULL)
// try to receive a response from server
- HttpParam param = { "access_token", m_szAccessToken };
- PushAsyncHttpRequest(REQUEST_GET, "/method/getUserInfoEx.json", true, &CVkProto::OnReceiveMyInfo, 1, &param);
- }
- else { // Initialize new OAuth session
+ RetrieveMyInfo();
+ else {
+ // Initialize new OAuth session
HttpParam params[] = {
{ "client_id", VK_APP_ID },
{ "scope", "friends,photos,audio,video,wall,messages,offline" },