Skip to content

🐛 Fix closed check when handling querySubscribe()#686

Merged
alecgibson merged 1 commit into
masterfrom
fix-qs-closed-check
Oct 24, 2024
Merged

🐛 Fix closed check when handling querySubscribe()#686
alecgibson merged 1 commit into
masterfrom
fix-qs-closed-check

Conversation

@alecgibson

Copy link
Copy Markdown
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
Copy Markdown

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
@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