Skip to content

Conversation

@Zoriot
Copy link
Contributor

@Zoriot Zoriot commented Nov 15, 2025

Fixes #35.

@Zoriot Zoriot added this to the Release v1.0.0 milestone Nov 15, 2025
@Zoriot Zoriot requested review from a team and kyanvde November 15, 2025 23:24
@Zoriot Zoriot self-assigned this Nov 15, 2025
@Zoriot Zoriot added the bug Something isn't working label Nov 15, 2025
@kyanvde kyanvde requested a review from Copilot December 2, 2025 07:34
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes a connection leak in the API utility class by properly closing OkHttp Response objects using try-with-resources blocks. The changes ensure that HTTP connections are properly released after use, preventing resource exhaustion over time.

Key Changes:

  • Wrapped all Response objects in async methods with try-with-resources to ensure proper connection cleanup
  • Added @NotNull annotations to Callback method parameters for better null-safety
  • Made the httpClient field final to prevent accidental reassignment
  • Replaced printStackTrace() calls with structured logging using ComponentLogger

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review for a chance to win a $100 gift card. Take the survey.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Navigation Module Connection Leak

2 participants