diff options
author | George Hazan <george.hazan@gmail.com> | 2015-04-15 20:35:52 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-04-15 20:35:52 +0000 |
commit | aeec5c9058701810adecc6cd2220ca1dc3b71417 (patch) | |
tree | 1b1b11744d702a8169081e1affeb77b98113d2f5 /protocols/SkypeWeb | |
parent | b1334fbf0b5f0815428f1992c5ea6222d2557be2 (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.cpp | 5 |
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 |