From 16bd39badf853d4824796f8c3a6963339b551879 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Sat, 15 Mar 2014 11:18:52 +0000 Subject: Facebook: solve eventual clientid conflicts - safety first :) git-svn-id: http://svn.miranda-ng.org/main/trunk@8619 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/FacebookRM/src/communication.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'protocols/FacebookRM') diff --git a/protocols/FacebookRM/src/communication.cpp b/protocols/FacebookRM/src/communication.cpp index 9308be3ed8..5c99482a89 100644 --- a/protocols/FacebookRM/src/communication.cpp +++ b/protocols/FacebookRM/src/communication.cpp @@ -1138,6 +1138,11 @@ bool facebook_client::channel() case HTTP_CODE_OK: return handle_success("channel"); + case HTTP_CODE_GATEWAY_TIMEOUT: + // Maybe we have same clientid as other connected client, try to generate different one + this->chat_clientid_ = utils::text::rand_string(8, "0123456789abcdef"); + + // Intentionally fall to handle_error() below case HTTP_CODE_FAKE_DISCONNECTED: case HTTP_CODE_FAKE_ERROR: default: -- cgit v1.2.3