Skip to content
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

Reset connectionHealthData before (re)connection #27

Merged
merged 1 commit into from
Dec 11, 2019
Merged

Reset connectionHealthData before (re)connection #27

merged 1 commit into from
Dec 11, 2019

Conversation

XHatan
Copy link
Contributor

@XHatan XHatan commented Dec 11, 2019

Issue #:

Description of changes

ReconnectionHealthPolicy relies on ConnectionHealthData to determine whether connection is healthy. This ConnectionHealthData object is persistent in AudioVideoController and shared across several objects. We need to reset the data and set the correct timestamp to avoid redundantly triggering re-connection.
This PR is a minimum fix.

There will be following PR to refactor the object lifecycle of MonitorTask and ConnectionMonitor to be more persistent instead of re-allocating.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@XHatan XHatan requested review from simmkyu and andi-amzn December 11, 2019 18:28
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