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 closed check when handling querySubscribe() #686

Merged
merged 1 commit into from
Oct 24, 2024

Conversation

alecgibson
Copy link
Collaborator

The Agent attempts to check if it's been closed when getting the response for a query subscribe.

However, it incorrectly tries to access this inside a function, which doesn't give the correct value, and in strict mode, will actually result in an error, since this will be undefined.

This change adds a test for this case and fixes it.

The `Agent` attempts to check if it's been closed when getting the
response for a query subscribe.

However, it incorrectly tries to access `this` inside a `function`,
which doesn't give the correct value, and in `strict mode`, will
actually result in an error, since `this` will be `undefined`.

This change adds a test for this case and fixes it.
@coveralls
Copy link

Coverage Status

coverage: 97.487%. remained the same
when pulling 35f4f56 on fix-qs-closed-check
into 4b8d3dc on master.

@alecgibson alecgibson merged commit 14c0104 into master Oct 24, 2024
8 checks passed
@alecgibson alecgibson deleted the fix-qs-closed-check branch October 24, 2024 07:26
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