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

fix(auth): clean up response body in isCredentialValid #626

Merged
merged 1 commit into from Aug 22, 2022

Conversation

iProdigy
Copy link
Member

Prerequisites for Code Changes

  • This pull request follows the code style of the project
  • I have tested this feature

Issues Fixed

  • [OkHttp ConnectionPool/WARN]: A connection to https://id.twitch.tv/ was leaked. Did you forget to close a response body?

Changes Proposed

  • Apply try-with-resources on Response in TwitchIdentityProvider#isCredentialValid (which closes the body)

Additional Information

Since a response body is present but never consumed, it was not being closed

@iProdigy iProdigy merged commit cbdf64f into develop Aug 22, 2022
@iProdigy iProdigy deleted the fix/close-valid-credential-body branch August 22, 2022 23:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants