From 2f4eaac57045bcb45f0c7087437649a9f664410d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Sun, 9 Nov 2014 23:03:49 +0000 Subject: Facebook: Fix disconnection few seconds after login for some people git-svn-id: http://svn.miranda-ng.org/main/trunk@10941 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/FacebookRM/src/communication.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'protocols/FacebookRM/src/communication.cpp') diff --git a/protocols/FacebookRM/src/communication.cpp b/protocols/FacebookRM/src/communication.cpp index fe8fdc3cfb..3cefc8a822 100644 --- a/protocols/FacebookRM/src/communication.cpp +++ b/protocols/FacebookRM/src/communication.cpp @@ -539,6 +539,9 @@ std::string facebook_client::choose_action(RequestType request_type, std::string if (!this->chat_sticky_num_.empty()) action += "&sticky_token=" + this->chat_sticky_num_; + if (!this->chat_sticky_pool_.empty()) + action += "&sticky_pool=" + this->chat_sticky_pool_; + if (!this->chat_traceid_.empty()) action += "&traceid=" + this->chat_traceid_; @@ -1139,8 +1142,8 @@ bool facebook_client::channel() } else if (type == "lb") { // Some new stuff (idk how does it work yet) - this->chat_channel_host_ = utils::text::source_get_value(&resp.data, 2, "\"vip\":\"", "\""); - parent->debugLogA(" Got self channel host: %s", this->chat_channel_host_.c_str()); + this->chat_sticky_pool_ = utils::text::source_get_value(&resp.data, 2, "\"pool\":\"", "\""); + parent->debugLogA(" Got self sticky pool: %s", this->chat_sticky_pool_.c_str()); this->chat_sticky_num_ = utils::text::source_get_value2(&resp.data, "\"sticky\":\"", "\""); parent->debugLogA(" Got self sticky number: %s", this->chat_sticky_num_.c_str()); -- cgit v1.2.3