webex / webex-js-sdk

JavaScript SDK for Webex
https://webex.github.io/webex-js-sdk/
Other
167 stars 334 forks source link

fix: 2 reconnections started in parallel #3638

Closed marcin-bazyl closed 3 weeks ago

marcin-bazyl commented 3 weeks ago

COMPLETES #SPARK-531442

This pull request addresses

When a reconnection is started, we first do reachability checks and if during that time we get a FAILED connection state notification, we end up starting another reconnection. We should only do 1 reconnection at a time.

by making the following changes

Setting ReconnectionManager.status to IN_PROGRESS sooner and also refactored the code a bit so that the status is private and only ReconnectionManager changes it. Also moved sending of some metrics and emitting events from Meeting into ReconnectionManager so that now ReconnectionManager really is the one managing the reconnection.

Change Type

The following scenarios where tested

unit tests

I certified that


Make sure to have followed the contributing guidelines before submitting.