From 1c023b4c677e8dcf0a776b07d8679a6464d2ee61 Mon Sep 17 00:00:00 2001 From: MikalaiR Date: Wed, 26 Aug 2015 11:56:05 +0000 Subject: SkypeWeb: small fixes git-svn-id: http://svn.miranda-ng.org/main/trunk@15035 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/SkypeWeb/src/skype_polling.cpp | 5 ++--- protocols/SkypeWeb/src/skype_trouter.cpp | 1 + 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/protocols/SkypeWeb/src/skype_polling.cpp b/protocols/SkypeWeb/src/skype_polling.cpp index 3d10898c4a..423fb399a9 100644 --- a/protocols/SkypeWeb/src/skype_polling.cpp +++ b/protocols/SkypeWeb/src/skype_polling.cpp @@ -25,6 +25,7 @@ void CSkypeProto::PollingThread(void*) while (!m_bThreadsTerminated) { WaitForSingleObject(m_hPollingEvent, INFINITE); + nErrors = 0; while ((nErrors < POLLING_ERRORS_LIMIT) && m_iStatus != ID_STATUS_OFFLINE) { @@ -73,12 +74,10 @@ void CSkypeProto::PollingThread(void*) } } } - m_pollingConnection = response->nlc; - } - if (m_iStatus > ID_STATUS_OFFLINE) + if (m_iStatus != ID_STATUS_OFFLINE) { debugLogA(__FUNCTION__ ": unexpected termination; switching protocol to offline"); SetStatus(ID_STATUS_OFFLINE); diff --git a/protocols/SkypeWeb/src/skype_trouter.cpp b/protocols/SkypeWeb/src/skype_trouter.cpp index 1525b6b19a..a5702b6b9c 100644 --- a/protocols/SkypeWeb/src/skype_trouter.cpp +++ b/protocols/SkypeWeb/src/skype_trouter.cpp @@ -137,6 +137,7 @@ void CSkypeProto::TRouterThread(void*) { WaitForSingleObject(m_hTrouterEvent, INFINITE); + errors = 0; while (errors < POLLING_ERRORS_LIMIT && m_iStatus > ID_STATUS_OFFLINE) { -- cgit v1.2.3