diff options
-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;
|