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

Proactively remove players from location on disconnect #1389

Merged
merged 1 commit into from
Aug 20, 2024

Conversation

Pablete1234
Copy link
Member

lastToLocation is a weak hash map of Player -> Location, issue is if player is slow to get GCed, it also drags along the location (which contains the world). This more proactively cleans up the map

Signed-off-by: Pablo Herrera <pabloherrerapalacio@gmail.com>
@Pablete1234 Pablete1234 merged commit 820faff into dev Aug 20, 2024
2 checks passed
@Pablete1234 Pablete1234 deleted the fix-mem-leaks branch August 20, 2024 01:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants