Skip to content

Avoid to check for reachability everytime we make a call #376

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Mar 22, 2021

Conversation

manuquentin
Copy link
Contributor

@manuquentin manuquentin commented Mar 3, 2021

This PR changes the way we check for reachability.
Instead of setting isReachable to false in the VoiceConnectionService constructor, we set it to false in the module constructor.

The VoiceConnectionService constructor is called each time a call is made, we don't have to reset the isReachable boolean, because when the JS bridge is reachable once in the module lifetime there is no need to check it again.

This PR adds more logs and more information in logs.

This PR also fixes the wakeUpApplication which can be called twice when the reachability timeout is triggered.

@manuquentin
Copy link
Contributor Author

@sboily can you please have a look ?

@manuquentin manuquentin merged commit 255b5f4 into master Mar 22, 2021
@manuquentin manuquentin deleted the fix_reachability branch March 22, 2021 12:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants