Bug when trying to set a HttpAsyncClient
atef-haouari opened this issue · 1 comments
atef-haouari commented
When I call this method, I've always a RuntimeException with this message: "HttpAsyncClient was already set before or default one is being used."
public static void HttpClientManager.setHttpAsyncClient(CloseableHttpAsyncClient httpAsyncClient) {
...
}
To resolve this bug, the condition should be
if(HttpClientManager.httpAsyncClient == null)
not
if(httpAsyncClient == null)
mpodwysocki commented
Fixed