Skip to content

Commit

Permalink
Fix RTDB stream time out error during authentication stage.
Browse files Browse the repository at this point in the history
  • Loading branch information
mobizt committed Jul 11, 2023
1 parent 270151b commit 277a2ab
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/session/FB_Session.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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)
{
Expand Down

0 comments on commit 277a2ab

Please sign in to comment.