From 277a2ab966816a471a4f7c3cd10b4d7c36778a24 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 11 Jul 2023 12:43:06 +0700 Subject: [PATCH] Fix RTDB stream time out error during authentication stage. --- src/session/FB_Session.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/session/FB_Session.cpp b/src/session/FB_Session.cpp index 689281986..d1213f3fe 100644 --- a/src/session/FB_Session.cpp +++ b/src/session/FB_Session.cpp @@ -2036,8 +2036,6 @@ bool FCMObject::fcm_send(FirebaseData &fbdo, fb_esp_fcm_msg_type messageType) Signer.config->internal.fb_processing = false; return false; } - else - fbdo.session.connected = true; bool ret = waitResponse(fbdo); @@ -2054,8 +2052,7 @@ void FCMObject::rescon(FirebaseData &fbdo, const char *host) { fbdo._responseCallback = NULL; - if (fbdo.session.cert_updated || !fbdo.session.connected || - millis() - fbdo.session.last_conn_ms > fbdo.session.conn_timeout || + if (fbdo.session.cert_updated || millis() - fbdo.session.last_conn_ms > fbdo.session.conn_timeout || fbdo.session.con_mode != fb_esp_con_mode_fcm || strcmp(host, fbdo.session.host.c_str()) != 0) {