Skip to content

Commit 60ed822

Browse files
author
ctj
committed
优化ping bug2
1 parent 2a7a1c6 commit 60ed822

File tree

1 file changed

+1
-1
lines changed
  • base_iotutils/src/main/java/com/face_chtj/base_iotutils/network

1 file changed

+1
-1
lines changed

base_iotutils/src/main/java/com/face_chtj/base_iotutils/network/NetUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ public static boolean reloadDnsPing() {
324324
//先判断本机是否网络API返回正常
325325
if (getNetWorkType() != NETWORK_NO) {
326326
long beforeTime = BaseIotUtils.instance().dnsRefreshTime;
327-
if (beforeTime > 1) {
327+
if (beforeTime <= 0) {
328328
//如果没有记录过时间 那么证明第一次加载DNS列表
329329
BaseIotUtils.instance().dnsRefreshTime = System.currentTimeMillis();//记录这一次操作的时间
330330
//如果在通过的列表中 有网络正常通过的那么直接返回true ,因为的重新加载的列表中会对所有的列表做检测

0 commit comments

Comments
 (0)