summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb/src/skype_polling.cpp
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2016-04-13 16:12:52 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2016-04-13 16:12:52 +0000
commit122306cee52b2da3694e3e04ad139fe92def1693 (patch)
treec5768c1aed3a65f3a74d0db80ffd7e05f5676e11 /protocols/SkypeWeb/src/skype_polling.cpp
parentfdc5bdfae8a4a70cfd91ec0a8554005a3c0bbae2 (diff)
SkypeWeb: code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@16643 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeWeb/src/skype_polling.cpp')
-rw-r--r--protocols/SkypeWeb/src/skype_polling.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/protocols/SkypeWeb/src/skype_polling.cpp b/protocols/SkypeWeb/src/skype_polling.cpp
index 6fe8f198b3..31de0c75c1 100644
--- a/protocols/SkypeWeb/src/skype_polling.cpp
+++ b/protocols/SkypeWeb/src/skype_polling.cpp
@@ -27,12 +27,12 @@ void CSkypeProto::PollingThread(void*)
m_hPollingEvent.Wait();
nErrors = 0;
+ PollRequest *request = new PollRequest(li);
+
while ((nErrors < POLLING_ERRORS_LIMIT) && m_iStatus != ID_STATUS_OFFLINE)
{
- PollRequest *request = new PollRequest(li);
request->nlc = m_pollingConnection;
NLHR_PTR response(request->Send(m_hNetlibUser));
- delete request;
if (response == NULL)
{
@@ -77,6 +77,7 @@ void CSkypeProto::PollingThread(void*)
}
m_pollingConnection = response->nlc;
}
+ delete request;
if (m_iStatus != ID_STATUS_OFFLINE)
{
@@ -172,7 +173,7 @@ void CSkypeProto::ProcessEndpointPresence(const JSONNode &node)
break;
case 13:
MirVer.AppendFormat("Skype (OSX) %s", ParseUrl(skypeNameVersion.c_str(), "/"));
- break;
+ break;
case 11:
MirVer.AppendFormat("Skype (Windows) %s", ParseUrl(skypeNameVersion.c_str(), "/"));
break;