summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-04-15 20:35:52 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-04-15 20:35:52 +0000
commitaeec5c9058701810adecc6cd2220ca1dc3b71417 (patch)
tree1b1b11744d702a8169081e1affeb77b98113d2f5 /protocols/SkypeWeb
parentb1334fbf0b5f0815428f1992c5ea6222d2557be2 (diff)
say NO to perversions!
git-svn-id: http://svn.miranda-ng.org/main/trunk@12847 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeWeb')
-rw-r--r--protocols/SkypeWeb/src/skype_login.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/protocols/SkypeWeb/src/skype_login.cpp b/protocols/SkypeWeb/src/skype_login.cpp
index 2e06e710fe..60c6b41064 100644
--- a/protocols/SkypeWeb/src/skype_login.cpp
+++ b/protocols/SkypeWeb/src/skype_login.cpp
@@ -205,8 +205,6 @@ void CSkypeProto::OnSubscriptionsCreated(const NETLIBHTTPREQUEST *response)
void CSkypeProto::OnStatusChanged(const NETLIBHTTPREQUEST *response)
{
- m_iStatus++;
-
if (response == NULL)
{
debugLogA(__FUNCTION__ ": failed to change status");
@@ -234,7 +232,8 @@ void CSkypeProto::OnStatusChanged(const NETLIBHTTPREQUEST *response)
return;
}
+ int oldStatus = m_iStatus;
m_iStatus = m_iDesiredStatus = iNewStatus;
- ProtoBroadcastAck(NULL, ACKTYPE_STATUS, ACKRESULT_SUCCESS, (HANDLE)ID_STATUS_CONNECTING, m_iStatus);
+ ProtoBroadcastAck(NULL, ACKTYPE_STATUS, ACKRESULT_SUCCESS, (HANDLE)oldStatus, m_iStatus);
ProtoBroadcastAck(NULL, ACKTYPE_LOGIN, ACKRESULT_SUCCESS, NULL, 0);
} \ No newline at end of file