diff options
author | Robert Pösel <robyer@seznam.cz> | 2016-09-04 14:04:54 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2016-09-04 14:04:54 +0000 |
commit | 826072cd435d8c5b0592e24cc438702bd479e3b2 (patch) | |
tree | 43c9af264946a2d42d8c1f5e9f95767ccfa51e14 /protocols/FacebookRM/src/connection.cpp | |
parent | bb81def84fd84bb6e762e556169ae081b67569f8 (diff) |
Facebook: Use separate persistent connection for sending messages to make sending faster
git-svn-id: http://svn.miranda-ng.org/main/trunk@17248 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/connection.cpp')
-rw-r--r-- | protocols/FacebookRM/src/connection.cpp | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/protocols/FacebookRM/src/connection.cpp b/protocols/FacebookRM/src/connection.cpp index 1a6c60ad50..3baeb2838e 100644 --- a/protocols/FacebookRM/src/connection.cpp +++ b/protocols/FacebookRM/src/connection.cpp @@ -37,10 +37,16 @@ void FacebookProto::ChangeStatus(void*) SetEvent(update_loop_lock_); // Shutdown and close channel handle - Netlib_Shutdown(facy.hMsgCon); - if (facy.hMsgCon) - Netlib_CloseHandle(facy.hMsgCon); - facy.hMsgCon = NULL; + Netlib_Shutdown(facy.hChannelCon); + if (facy.hChannelCon) + Netlib_CloseHandle(facy.hChannelCon); + facy.hChannelCon = NULL; + + // Shutdown and close messages handle + Netlib_Shutdown(facy.hMessagesCon); + if (facy.hMessagesCon) + Netlib_CloseHandle(facy.hMessagesCon); + facy.hMessagesCon = NULL; // Turn off chat on Facebook if (getByte(FACEBOOK_KEY_DISCONNECT_CHAT, DEFAULT_DISCONNECT_CHAT)) |