Team-Creative-Name / Plexi

A Discord bot that integrates with Ombi
GNU Affero General Public License v3.0
1 stars 1 forks source link

OKHTTP reports that a response body was not closed #17

Closed collectioncard closed 4 years ago

collectioncard commented 4 years ago

After running for a while, Plexi will report "WARNING: A connection to OMBI_URL was leaked. Did you forget to close a response body? To see where this was allocated, set the OkHttpClient logger level to FINE: Logger.getLogger(OkHttpClient.class.getName()).setLevel(Level.FINE);"

This is something that needs to be addressed.

collectioncard commented 4 years ago

This is most likely a bug introduced via the settings class. We create a connection and then only check if it is successful.

collectioncard commented 4 years ago

Fixed in 3756eaa5f10723cd9121f571779b17f4c39f9b1d