We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cb84220 + 9a524aa commit 4f53b07Copy full SHA for 4f53b07
webmagic-core/src/main/java/us/codecraft/webmagic/downloader/HttpClientDownloader.java
@@ -70,6 +70,7 @@ private CloseableHttpClient getHttpClient(Site site) {
70
CloseableHttpClient httpClient = httpClients.get(domain);
71
if (httpClient == null) {
72
synchronized (this) {
73
+ httpClient = httpClients.get(domain);
74
75
httpClient = httpClientGenerator.getClient(site);
76
httpClients.put(domain, httpClient);
0 commit comments