Skip to content

Commit d56867e

Browse files
committed
cleanup singleton-instance of HttpAsyncClientSingleton.HTTP_CLIENT by setting HTTP_CLIENT to null on ConnectorCommon.shutdown()
1 parent 9ed78f3 commit d56867e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/main/java/org/aarboard/nextcloud/api/utils/ConnectorCommon.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,7 @@ public interface ResponseParser<R> {
273273
public static void shutdown() throws IOException {
274274
if(HttpAsyncClientSingleton.HTTPC_CLIENT != null) {
275275
HttpAsyncClientSingleton.getInstance(null).close();
276+
HttpAsyncClientSingleton.HTTPC_CLIENT = null;
276277
}
277278
}
278279
}

0 commit comments

Comments
 (0)