a-schild / nextcloud-java-api

Java api library to access nextcloud features from java applications
GNU General Public License v3.0
72 stars 50 forks source link

set HttpAsyncClientSingleton.HTTPC_CLIENT = null on shutdown #84

Closed lucnygr closed 11 months ago

lucnygr commented 12 months ago

when using the NextcloudConnector, shutting it down with NextcloudConnector.shutdown() and using it afterwards again in the same JVM (for example when executing multiple integration-tests after each other) the HTTPC_CLIENT does not get initialized because its not null. the HTTPC_CLIENT-instance is in the STOPPED-state, so further executions with the client dont work.

PR: cleanup singleton-instance of HttpAsyncClientSingleton.HTTPC_CLIENT by setting the HTTP_CLIENT to null on ConnectorCommon.shutdown()

a-schild commented 11 months ago

Thanks for the patch. Is included in the 13.0.1 release