summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb/src/skype_polling.cpp
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2015-04-05 13:53:50 +0000
committerAlexander Lantsev <aunsane@gmail.com>2015-04-05 13:53:50 +0000
commit7c2b6ea1c3af9aab4c265ddc7ab6a6c2a07be5cc (patch)
tree8fe2c16fcd96e44d54326fdc8f4b4ac2ea5c42da /protocols/SkypeWeb/src/skype_polling.cpp
parent5413f05df37646178533a24f80e0e0238982af36 (diff)
SkypeWeb: cleanup headers (patch from MikalaiR)
git-svn-id: http://svn.miranda-ng.org/main/trunk@12611 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeWeb/src/skype_polling.cpp')
-rw-r--r--protocols/SkypeWeb/src/skype_polling.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/protocols/SkypeWeb/src/skype_polling.cpp b/protocols/SkypeWeb/src/skype_polling.cpp
index 5cd679aa8d..e963aad83b 100644
--- a/protocols/SkypeWeb/src/skype_polling.cpp
+++ b/protocols/SkypeWeb/src/skype_polling.cpp
@@ -58,11 +58,12 @@ void CSkypeProto::PollingThread(void*)
{
PollRequest *request = new PollRequest(regToken, server);
NETLIBHTTPREQUEST *response = request->Send(m_hNetlibUser);
+ m_pollingConnection = request->nlc;
delete request;
+
if (response != NULL)
{
- m_pollingConnection = response->nlc;
JSONROOT root(response->pData);
if (json_get(root, "errorCode") != NULL)
{