summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb/src/skype_polling.cpp
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2015-04-08 20:34:40 +0000
committerAlexander Lantsev <aunsane@gmail.com>2015-04-08 20:34:40 +0000
commit97cdf4cf1a9bdf132477708c0cb150ce1b6e118f (patch)
tree283f998d6a7212c6d48872aa049e4a420c03f1d2 /protocols/SkypeWeb/src/skype_polling.cpp
parent6148761669741440a617e27f03c9eaf0e9038818 (diff)
SkypeWeb: cleanup
git-svn-id: http://svn.miranda-ng.org/main/trunk@12683 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeWeb/src/skype_polling.cpp')
-rw-r--r--protocols/SkypeWeb/src/skype_polling.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/protocols/SkypeWeb/src/skype_polling.cpp b/protocols/SkypeWeb/src/skype_polling.cpp
index 0a1905ff13..b40a84ccd4 100644
--- a/protocols/SkypeWeb/src/skype_polling.cpp
+++ b/protocols/SkypeWeb/src/skype_polling.cpp
@@ -48,9 +48,8 @@ void CSkypeProto::PollingThread(void*)
ptrA server(getStringA("Server"));
int errors = 0;
- bool breaked = false;
isTerminated = false;
- while (!isTerminated && !breaked && errors < POLLING_ERRORS_LIMIT)
+ while (!isTerminated && errors < POLLING_ERRORS_LIMIT)
{
PollRequest *request = new PollRequest(regToken, server);
request->nlc = m_pollingConnection;
@@ -74,13 +73,14 @@ void CSkypeProto::PollingThread(void*)
delete request;
}
- m_hPollingThread = NULL;
- m_pollingConnection = NULL;
- debugLogA(__FUNCTION__": leaving");
-
+
if (!isTerminated)
{
debugLogA(__FUNCTION__": unexpected termination; switching protocol to offline");
SetStatus(ID_STATUS_OFFLINE);
}
+
+ m_hPollingThread = NULL;
+ m_pollingConnection = NULL;
+ debugLogA(__FUNCTION__": leaving");
} \ No newline at end of file