Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix not joining call again due to call flags in forced reconnections
When the HPB is not used forcing a reconnection causes the call to be left and then joined again. Although it was waited for the call to be left first before joining again in some cases it could happen that, after sending the join request but before receiving its response, the "usersInRoom" event was received. In that case the call flags for the participant will be "disconnected" (as at this point it is actually disconnected), but as the join request was already sent it is seen as "a moderator ended the call", and thus the call is left again. To prevent that now it is explicitly waited for the "disconnected" flags to be received and, then, the call is joined again. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
- Loading branch information