double-check 中再取次httpClient的内容

pull/44/head
shijinping 11 years ago
parent cb84220d7a
commit 9a524aa364

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

Loading…
Cancel
Save