diff options
author | George Hazan <george.hazan@gmail.com> | 2013-10-23 22:40:56 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-10-23 22:40:56 +0000 |
commit | cb4909f7f21641f40e2676a848304e54bc44328c (patch) | |
tree | 75142255eb38814ad0809fe7c777e3ae128672fe /protocols/VKontakte/src/vk_proto.cpp | |
parent | 02c5b3e97608972a9aa6638bb73b31a4c6bddcfd (diff) |
VK:
- massive update for the status setting code;
- connection icon doesn't rotate in tray;
- connection status isn't restored after wake up from standby/sleep mode;
- network errors weren't processed in the main cycle
- version bump
git-svn-id: http://svn.miranda-ng.org/main/trunk@6606 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/VKontakte/src/vk_proto.cpp')
-rw-r--r-- | protocols/VKontakte/src/vk_proto.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/protocols/VKontakte/src/vk_proto.cpp b/protocols/VKontakte/src/vk_proto.cpp index 0f671aaa6d..12f160d169 100644 --- a/protocols/VKontakte/src/vk_proto.cpp +++ b/protocols/VKontakte/src/vk_proto.cpp @@ -196,12 +196,10 @@ int CVkProto::SetStatus(int iNewStatus) ProtoBroadcastAck(NULL, ACKTYPE_STATUS, ACKRESULT_SUCCESS, (HANDLE)oldStatus, m_iStatus);
m_hWorkerThread = ForkThreadEx(&CVkProto::WorkerThread, 0, NULL);
}
- else {
- if ( IsOnline())
- SetServerStatus(iNewStatus);
- m_iStatus = iNewStatus;
+ else if ( IsOnline())
+ SetServerStatus(iNewStatus);
+ else
ProtoBroadcastAck(NULL, ACKTYPE_STATUS, ACKRESULT_SUCCESS, (HANDLE)oldStatus, m_iStatus);
- }
return 0;
}
|