Skip to content

Commit aaa53f5

Browse files
committed
Merge branch 'master' of github.com:code4craft/webmagic
2 parents 07bcb06 + 4f53b07 commit aaa53f5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

webmagic-core/src/main/java/us/codecraft/webmagic/downloader/HttpClientDownloader.java

+1
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ private CloseableHttpClient getHttpClient(Site site) {
7070
CloseableHttpClient httpClient = httpClients.get(domain);
7171
if (httpClient == null) {
7272
synchronized (this) {
73+
httpClient = httpClients.get(domain);
7374
if (httpClient == null) {
7475
httpClient = httpClientGenerator.getClient(site);
7576
httpClients.put(domain, httpClient);

0 commit comments

Comments
 (0)