diff options
author | MikalaiR <nikolay.romanovich@narod.ru> | 2015-08-26 11:56:05 +0000 |
---|---|---|
committer | MikalaiR <nikolay.romanovich@narod.ru> | 2015-08-26 11:56:05 +0000 |
commit | 1c023b4c677e8dcf0a776b07d8679a6464d2ee61 (patch) | |
tree | 926b71e8c7dc163b75f80bd19898d14bdd06375c | |
parent | 05a5fe56ad2c01f3959176bb164bfe12eeac3c8d (diff) |
SkypeWeb: small fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@15035 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-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)
{
|