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 P2P_discovery sockets not being released on stop #13

Merged
merged 1 commit into from
Apr 10, 2024

Conversation

NoCounterfeit
Copy link
Contributor

Hello. There's a problem with p2p_discovery.lua in that, when .stop gets called on an active listener, the socket is never closed. This blocks .listen from working a second time.

Similarly, line 70 attempts udp_broadcast:close() but udp_broadcast isn't defined.

- there was reference to 'udp_broadcast' which wasn't declared anywhere, preventing :close() from working  :: corrected

- stopping the listener then starting it a second time failed since the socket hadn't been closed at all  :: fixed
Copy link
Owner

@britzl britzl left a comment

Choose a reason for hiding this comment

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

NIce finds! Thank you!

@britzl britzl merged commit 6fe1ecd into britzl:master Apr 10, 2024
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