diff options
author | Sergey Bolhovskoy <elzorfox@ya.ru> | 2015-01-25 13:05:27 +0000 |
---|---|---|
committer | Sergey Bolhovskoy <elzorfox@ya.ru> | 2015-01-25 13:05:27 +0000 |
commit | 357ae09c7eba86e783583566816285750933beaa (patch) | |
tree | 1d6a5622b8226cb92233de8db11ca28182fe33a0 /protocols/VKontakte | |
parent | 69839c26be7521aade107d06b2c8108f9f01ce97 (diff) |
VKontakte: change debuglog lines
git-svn-id: http://svn.miranda-ng.org/main/trunk@11904 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/VKontakte')
-rw-r--r-- | protocols/VKontakte/src/vk_queue.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/protocols/VKontakte/src/vk_queue.cpp b/protocols/VKontakte/src/vk_queue.cpp index 54a33e135a..1fdc21242c 100644 --- a/protocols/VKontakte/src/vk_queue.cpp +++ b/protocols/VKontakte/src/vk_queue.cpp @@ -62,7 +62,7 @@ void CVkProto::ExecuteRequest(AsyncHttpRequest *pReq) pReq->bNeedsRestart = true;
Sleep(1000); //Pause for fix err
pReq->m_iRetry--;
- debugLogA("CVkProto::ExecuteRequest restarting retry = %d", MAX_RETRIES - pReq->m_iRetry);
+ debugLogA("CVkProto::ExecuteRequest restarting (retry = %d)", MAX_RETRIES - pReq->m_iRetry);
}
else {
debugLogA("CVkProto::ExecuteRequest ShutdownSession");
@@ -111,7 +111,7 @@ void CVkProto::WorkerThread(void*) }
while (true) {
- debugLogA("CVkProto::WorkerThread: _while begin");
+ debugLogA("CVkProto::WorkerThread: while(1)");
WaitForSingleObject(m_evRequestsQueue, 1000);
if (m_bTerminated)
break;
@@ -119,7 +119,7 @@ void CVkProto::WorkerThread(void*) AsyncHttpRequest *pReq;
bool need_sleep = false;
while (true) {
- debugLogA("CVkProto::WorkerThread: while begin");
+ debugLogA("CVkProto::WorkerThread: while(2)");
{
mir_cslock lck(m_csRequestsQueue);
if (m_arRequestsQueue.getCount() == 0)
@@ -132,11 +132,11 @@ void CVkProto::WorkerThread(void*) if (m_bTerminated)
break;
ExecuteRequest(pReq);
- if (need_sleep) // There can be maximum 3 requests to API methods per second from a client
+ if (need_sleep) { // There can be maximum 3 requests to API methods per second from a client
Sleep(330); // (c) https://vk.com/dev/api_requests
- debugLogA("CVkProto::WorkerThread: while end");
- }
- debugLogA("CVkProto::WorkerThread: _while end");
+ debugLogA("CVkProto::WorkerThread: need sleep");
+ }
+ }
}
m_hWorkerThread = 0;
|