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

fix(linux): Handle failures of OnMediaStateChange in OnMediaError #1731

Merged
merged 1 commit into from
Dec 15, 2023

Conversation

Gustl22
Copy link
Collaborator

@Gustl22 Gustl22 commented Dec 15, 2023

Description

Failures which occured in OnMediaStateChange method, were also thrown in OnMediaError. So the error was propagated twice and therefore the tests fail from time to time. This ensures to correctly throw the error only once, but also log the state change failure.

Checklist

  • The title of my PR starts with a Conventional Commit prefix (fix:, feat:, refactor:,
    docs:, chore:, test:, ci: etc).
  • I have read the Contributor Guide and followed the process outlined for submitting PRs.
  • I have updated/added tests for ALL new/updated/fixed functionality.
  • I have updated/added relevant documentation and added dartdoc comments with ///, where necessary.
  • I have updated/added relevant examples in example.

The tests should already cover this, but succeeded anyways. This should change after #1715.

Breaking Change

  • Yes, this is a breaking change.
  • No, this is not a breaking change.

Related Issues

#1715

@Gustl22 Gustl22 requested a review from spydon December 15, 2023 12:39
Copy link
Member

@spydon spydon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good find!

@Gustl22 Gustl22 merged commit 3a5c6dc into main Dec 15, 2023
8 checks passed
@Gustl22 Gustl22 deleted the gustl22/linux-media-state-failure branch December 15, 2023 13:06
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