From 8b91e6423697f9e76051b4b43c8463baee16ea94 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 24 Mar 2020 16:10:02 +0300 Subject: another attempt to fix #2260 --- protocols/Facebook/src/server.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'protocols/Facebook') diff --git a/protocols/Facebook/src/server.cpp b/protocols/Facebook/src/server.cpp index 506e59969c..c21f48dd8e 100644 --- a/protocols/Facebook/src/server.cpp +++ b/protocols/Facebook/src/server.cpp @@ -539,12 +539,13 @@ void FacebookProto::OnPublishMessage(FbThriftReader &rdr) CMStringA errorCode = root["errorCode"].as_mstring(); if (!errorCode.IsEmpty()) { - if (!m_QueueCreated && (errorCode == "ERROR_QUEUE_NOT_FOUND" || errorCode == "ERROR_QUEUE_LOST" )) { + if (!m_QueueCreated && (errorCode == "ERROR_QUEUE_OVERFLOW" || errorCode == "ERROR_QUEUE_NOT_FOUND" || errorCode == "ERROR_QUEUE_LOST" )) { m_QueueCreated = true; // prevent queue creation request from being sent twice m_szSyncToken.Empty(); delSetting(DBKEY_SYNC_TOKEN); MqttQueueConnect(); } + return; } -- cgit v1.2.3