This commit is contained in:
unknown
2021-01-05 19:18:12 +08:00
parent 50b7f00cdf
commit 8be440d6b2
17 changed files with 57 additions and 23 deletions

View File

@@ -18,8 +18,10 @@ class MogoHttpDnsHandler {
}
private static IMogoHttpDns sHttpDns;
@Keep
private static volatile IMogoHttpDns sHttpDns;
@Keep
public static IMogoHttpDns getHttpDnsApi() {
if ( sHttpDns == null ) {
synchronized ( MogoHttpDnsHandler.class ) {