From 7b7ca3a3a6f0217dd280f263efd5dd2b0b76637a Mon Sep 17 00:00:00 2001 From: sarahzzhang <743855454@qq.com> Date: Tue, 12 Dec 2023 11:10:59 +0800 Subject: [PATCH] fix: bug fix --- src/main/java/com/tencent/msdk/dns/core/DnsManager.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/com/tencent/msdk/dns/core/DnsManager.java b/src/main/java/com/tencent/msdk/dns/core/DnsManager.java index 74c846b..ac60b89 100644 --- a/src/main/java/com/tencent/msdk/dns/core/DnsManager.java +++ b/src/main/java/com/tencent/msdk/dns/core/DnsManager.java @@ -346,7 +346,7 @@ LookupResult getResultForSelector(CountDownLatch countDownLatc long startTimeMills) { Selector selector = lookupContext.selector(); if (selector == null) { - getResultForNullSelector(countDownLatch, lookupContext, lookupParams, lookupResultHolder, + return getResultForNullSelector(countDownLatch, lookupContext, lookupParams, lookupResultHolder, startTimeMills); } IRetry retry = sRetry; @@ -402,7 +402,6 @@ && canRetry(startTimeMills, timeoutMills, maxRetryTimes, retriedTimes)) { statMerge.statResult(ipSet); LookupResult lookupResult = new LookupResult(ipSet, statMerge); lookupResultHolder.mLookupResult = lookupResult; - return lookupResult; }