nextcloud-java-api icon indicating copy to clipboard operation
nextcloud-java-api copied to clipboard

lifecycle/shutdown

Open raboof opened this issue 9 months ago • 0 comments

Currently, NextcloudConnector has a shutdown method that calls the static ConnectorCommon.shutdown();

That seem a bit weird if you have multiple NextcloudConnector instances that could be around at the same time: in that case you have to make sure you delay shutting down until all connectors have completed.

I guess we could add a helper that reference-counts how many NextcloudConnectors have been instantiated, and shut down ConnectorCommon only when the last one is shut down?

raboof avatar Mar 21 '25 12:03 raboof