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: trigger drm requested fatal error twice #6703

Closed

Conversation

JackPu
Copy link
Contributor

@JackPu JackPu commented Sep 19, 2024

This PR will...

Why is this Pull Request needed?

Are there any points in the code the reviewer needs to double check?

Resolves issues:

Checklist

  • changes have been done against master branch, and PR does not conflict
  • new unit / functional tests have been added (whenever applicable)
  • API or design changes are documented in API.md

robwalch added a commit that referenced this pull request Sep 19, 2024
…rror if no longer listening to license status as part of keyUsablePromise

Resolves #6701
Replaces #6703
@robwalch
Copy link
Collaborator

#6704 should resolve the issue correctly.

@robwalch robwalch closed this Sep 19, 2024
@@ -769,10 +769,8 @@ class EMEController extends Logger implements ComponentAPI {
) {
this.renewLicense(context, message).catch((error) => {
this.handleError(error);
if (error instanceof EMEKeyError) {
if (!error.data.fatal) {
licenseStatus.emit('error', error);
Copy link
Collaborator

Choose a reason for hiding this comment

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

it is critical that the error is emitted to reject and close keyUsablePromise below. It is handleError that can be skipped if the licenseStatus emitter still has listeners. See #6704 for the fix.

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.

3 participants