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

Optimization: destroy ENet host on disconnect #166

Open
wants to merge 1 commit into
base: standalone
Choose a base branch
from

Conversation

utf-4096
Copy link

@utf-4096 utf-4096 commented Aug 8, 2022

This fixes a problem I've encountered with NAT, where the server port would only be forwarded after a client restart (while OpenSpades only requires you to reconnect, because it destroys the host on disconnect).
The ENet host variable also isn't used after being disconnected, so it's probably best to destroy it.

@utf-4096
Copy link
Author

utf-4096 commented Aug 9, 2022

Tested NAT on the original client and it is working as intended.

forked-from-1kasper added a commit to forked-from-1kasper/tigerspades that referenced this pull request Jun 3, 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.

1 participant