diff options
Diffstat (limited to 'protocols/SkypeWeb/src/skype_polling.cpp')
-rw-r--r-- | protocols/SkypeWeb/src/skype_polling.cpp | 5 |
1 files changed, 2 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);
|