Azure/azure-notificationhubs-java-backend

Bug when trying to set a HttpAsyncClient

atef-haouari opened this issue · 1 comments

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)

Fixed