diff options
Diffstat (limited to 'protocols/SkypeWeb')
-rw-r--r-- | protocols/SkypeWeb/src/skype_polling.cpp | 5 | ||||
-rw-r--r-- | 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)
{
|