diff options
author | Robert Pösel <robyer@seznam.cz> | 2013-07-26 17:29:14 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2013-07-26 17:29:14 +0000 |
commit | a8715e36ca4c5c757afcac6c86cf00a6965dd476 (patch) | |
tree | 8d653485bd1d98599e39054bc2e11639d80190a6 /protocols/FacebookRM | |
parent | 9754f5e5ca8fda43bacbe3c42909dd57cc36eaa1 (diff) |
Facebook: Small change to switching to offline procedure
git-svn-id: http://svn.miranda-ng.org/main/trunk@5492 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM')
-rw-r--r-- | protocols/FacebookRM/src/connection.cpp | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/protocols/FacebookRM/src/connection.cpp b/protocols/FacebookRM/src/connection.cpp index c241d79fe8..04deb1a7a5 100644 --- a/protocols/FacebookRM/src/connection.cpp +++ b/protocols/FacebookRM/src/connection.cpp @@ -38,29 +38,26 @@ void FacebookProto::ChangeStatus(void*) SetEvent(update_loop_lock_);
Netlib_Shutdown(facy.hMsgCon);
+ OnLeaveChat(NULL, NULL);
+ SetAllContactStatuses(ID_STATUS_OFFLINE, true);
+ ToggleStatusMenuItems(false);
+ delSetting("LogonTS");
+
+ ProtoBroadcastAck(0, ACKTYPE_STATUS, ACKRESULT_SUCCESS, (HANDLE)old_status, m_iStatus);
+
if (getByte(FACEBOOK_KEY_DISCONNECT_CHAT, DEFAULT_DISCONNECT_CHAT))
facy.chat_state(false);
facy.logout();
- delSetting("LogonTS");
-
facy.clear_cookies();
facy.buddies.clear();
facy.messages_ignore.clear();
- OnLeaveChat(NULL, NULL);
-
- SetAllContactStatuses(ID_STATUS_OFFLINE, true);
-
- ToggleStatusMenuItems(false);
-
if (facy.hMsgCon)
Netlib_CloseHandle(facy.hMsgCon);
facy.hMsgCon = NULL;
- ProtoBroadcastAck(0, ACKTYPE_STATUS, ACKRESULT_SUCCESS, (HANDLE)old_status, m_iStatus);
-
LOG("##### SignOff complete");
return;
|