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

set HttpAsyncClientSingleton.HTTPC_CLIENT = null on shutdown #84

Merged
merged 1 commit into from
Nov 29, 2023

Conversation

lucnygr
Copy link
Contributor

@lucnygr lucnygr commented Nov 18, 2023

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()

… setting HTTP_CLIENT to null on ConnectorCommon.shutdown()
@lucnygr lucnygr changed the title set HttpAsyncClientSingleton.HTTP_CLIENT = null on shutdown set HttpAsyncClientSingleton.HTTPC_CLIENT = null on shutdown Nov 19, 2023
@a-schild a-schild merged commit 184bbc4 into a-schild:master Nov 29, 2023
@a-schild
Copy link
Owner

Thanks for the patch.
Is included in the 13.0.1 release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants