diff options
author | George Hazan <george.hazan@gmail.com> | 2013-10-23 21:04:33 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-10-23 21:04:33 +0000 |
commit | 02c5b3e97608972a9aa6638bb73b31a4c6bddcfd (patch) | |
tree | 8fe733220a509b4f644043795de0bf72abc0d74a /protocols/VKontakte/src/vk_proto.cpp | |
parent | 6fd143b5c2f6e5d0c05657a9f7e8fe081a2447e2 (diff) |
VK: forcing server offline status when going offline locally
git-svn-id: http://svn.miranda-ng.org/main/trunk@6605 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/VKontakte/src/vk_proto.cpp')
-rw-r--r-- | protocols/VKontakte/src/vk_proto.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/protocols/VKontakte/src/vk_proto.cpp b/protocols/VKontakte/src/vk_proto.cpp index f112ccd4fc..0f671aaa6d 100644 --- a/protocols/VKontakte/src/vk_proto.cpp +++ b/protocols/VKontakte/src/vk_proto.cpp @@ -183,8 +183,10 @@ int CVkProto::SetStatus(int iNewStatus) m_iDesiredStatus = iNewStatus;
if (iNewStatus == ID_STATUS_OFFLINE) {
- if ( IsOnline())
+ if ( IsOnline()) {
+ SetServerStatus(ID_STATUS_OFFLINE);
ShutdownSession();
+ }
m_iStatus = m_iDesiredStatus = ID_STATUS_OFFLINE;
ProtoBroadcastAck(NULL, ACKTYPE_STATUS, ACKRESULT_SUCCESS, (HANDLE)oldStatus, m_iStatus);
|