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(upnp): don't panic when gateway is dropped #5273

Merged
merged 5 commits into from
Mar 29, 2024

Conversation

jxs
Copy link
Member

@jxs jxs commented Mar 27, 2024

Description

There seems to be a situation when the Behaviour and therefore it's Gateway is dropped leaving the tokio loop to panic. It has been reported on sigp/lighthouse#5498, this attempts to fix it.
Cc @dariusc93 can you review this please Darius? Thanks!

Change checklist

  • I have performed a self-review of my own code
  • [] I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • A changelog entry has been made in the appropriate crates

Copy link
Member

@dariusc93 dariusc93 left a comment

Choose a reason for hiding this comment

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

LGTM

protocols/upnp/CHANGELOG.md Outdated Show resolved Hide resolved
@dariusc93
Copy link
Member

I've noticed this last week and probably shouldve brought it up here but glad it is fixed :)

Co-authored-by: Darius Clark <dariusc93@users.noreply.github.com>
@jxs jxs added the trivial Marks PRs which are considered trivial and don't need approval from another maintainer. label Mar 29, 2024
@jxs jxs added the send-it label Mar 29, 2024
@mergify mergify bot merged commit a94e943 into libp2p:master Mar 29, 2024
71 of 72 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
send-it trivial Marks PRs which are considered trivial and don't need approval from another maintainer.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants