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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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.

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