diff options
author | Sergey Bolhovskoy <elzorfox@ya.ru> | 2014-12-05 07:53:53 +0000 |
---|---|---|
committer | Sergey Bolhovskoy <elzorfox@ya.ru> | 2014-12-05 07:53:53 +0000 |
commit | 9fca9c4c344cb330434e9e72e7934e207bcfaa4d (patch) | |
tree | 6155df657ec8e5171d4ae7544154829be3a8824e /protocols/VKontakte/src/vk_queue.cpp | |
parent | 8a3ea13f4390d4b5040a7bb13cbda2c93e7493ea (diff) |
VKontakte: code cleanup
git-svn-id: http://svn.miranda-ng.org/main/trunk@11248 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/VKontakte/src/vk_queue.cpp')
-rw-r--r-- | protocols/VKontakte/src/vk_queue.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/protocols/VKontakte/src/vk_queue.cpp b/protocols/VKontakte/src/vk_queue.cpp index 0740c14ce6..737779411b 100644 --- a/protocols/VKontakte/src/vk_queue.cpp +++ b/protocols/VKontakte/src/vk_queue.cpp @@ -58,13 +58,13 @@ void CVkProto::ExecuteRequest(AsyncHttpRequest *pReq) else if (pReq->bIsMainConn) {
if (m_iStatus >= ID_STATUS_CONNECTING && m_iStatus < ID_STATUS_CONNECTING + MAX_CONNECT_RETRIES)
ConnectionFailed(LOGINERR_NONETWORK);
- else if (pReq->m_iRetry && !m_bTerminated){
+ else if (pReq->m_iRetry && !m_bTerminated) {
pReq->bNeedsRestart = true;
Sleep(1000); //Pause for fix err
pReq->m_iRetry--;
debugLogA("CVkProto::ExecuteRequest restarting retry = %d", MAX_RETRIES - pReq->m_iRetry);
}
- else{
+ else {
debugLogA("CVkProto::ExecuteRequest ShutdownSession");
ShutdownSession();
}
@@ -110,14 +110,14 @@ void CVkProto::WorkerThread(void*) << VER_API)->m_bApiReq = false;;
}
- while(true) {
+ while (true) {
WaitForSingleObject(m_evRequestsQueue, 1000);
if (m_bTerminated)
break;
AsyncHttpRequest *pReq;
bool need_sleep = false;
- while(true) {
+ while (true) {
{
mir_cslock lck(m_csRequestsQueue);
if (m_arRequestsQueue.getCount() == 0)
|