Skip to content

Clear negotiation handler if engine is closed during negotiation#549

Merged
lukasIO merged 3 commits intomainfrom
lukas/handle-close
Jan 4, 2023
Merged

Clear negotiation handler if engine is closed during negotiation#549
lukasIO merged 3 commits intomainfrom
lukas/handle-close

Conversation

@lukasIO
Copy link
Contributor

@lukasIO lukasIO commented Jan 2, 2023

No description provided.

@changeset-bot
Copy link

changeset-bot bot commented Jan 2, 2023

⚠️ No Changeset found

Latest commit: 94cb368

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@lukasIO lukasIO requested a review from davidzhao January 2, 2023 19:01

async close() {
const unlock = await this.closingLock.lock();
if (this.isClosed) {
Copy link
Member

Choose a reason for hiding this comment

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

should it unlock as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thanks for catching this!

Copy link
Member

@davidzhao davidzhao left a comment

Choose a reason for hiding this comment

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

lgtm!

@lukasIO lukasIO merged commit c263eff into main Jan 4, 2023
@lukasIO lukasIO deleted the lukas/handle-close branch January 4, 2023 08:04
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