|
|
@ -70,6 +70,7 @@ public class HttpClientDownloader implements Downloader {
|
|
|
|
CloseableHttpClient httpClient = httpClients.get(domain);
|
|
|
|
CloseableHttpClient httpClient = httpClients.get(domain);
|
|
|
|
if (httpClient == null) {
|
|
|
|
if (httpClient == null) {
|
|
|
|
synchronized (this) {
|
|
|
|
synchronized (this) {
|
|
|
|
|
|
|
|
httpClient = httpClients.get(domain);
|
|
|
|
if (httpClient == null) {
|
|
|
|
if (httpClient == null) {
|
|
|
|
httpClient = httpClientGenerator.getClient(site);
|
|
|
|
httpClient = httpClientGenerator.getClient(site);
|
|
|
|
httpClients.put(domain, httpClient);
|
|
|
|
httpClients.put(domain, httpClient);
|
|
|
|