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

fixed the issue of sending on closed channel #542

Merged
merged 2 commits into from
Apr 11, 2022
Merged

fixed the issue of sending on closed channel #542

merged 2 commits into from
Apr 11, 2022

Conversation

mpldr
Copy link
Contributor

@mpldr mpldr commented Apr 10, 2022

This commit fixes the issue of headscale crashing after sending on a
closed channel by moving the channel close to the sender side, instead
of the creator. closeChanWithLog is also implemented with generics now.

Signed-off-by: Moritz Poldrack [email protected]

  • read the CONTRIBUTING guidelines
  • raised a GitHub issue or discussed it on the projects chat beforehand
  • added unit tests
  • added integration tests
  • updated documentation if needed
  • updated CHANGELOG.md

Fixes #342

@mpldr
Copy link
Contributor Author

mpldr commented Apr 10, 2022

This Commit was also sent to @juanfont 10.04.2022 22:37 UTC.

This commit fixes the issue of headscale crashing after sending on a
closed channel by moving the channel close to the sender side, instead
of the creator. closeChanWithLog is also implemented with generics now.

Fixes: #342
Signed-off-by: Moritz Poldrack <[email protected]>
@kradalby
Copy link
Collaborator

Happy to merge and test this when the tests pass, can you add an entry to the changelog?

@kradalby kradalby merged commit 367f848 into juanfont:main Apr 11, 2022
@mpldr mpldr deleted the issue-342-send-on-closed-channel branch April 11, 2022 10:49
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.

panic: send on closed channel
2 participants