From 09695fc6d3144e742a53d4aded80dc3ecfb19084 Mon Sep 17 00:00:00 2001 From: Al Sutton Date: Thu, 4 Mar 2021 16:34:02 +0000 Subject: [PATCH] Update exceptions to match updated API --- source/net/yacy/cora/protocol/Domains.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/net/yacy/cora/protocol/Domains.java b/source/net/yacy/cora/protocol/Domains.java index 98ffb7da8..c57647361 100644 --- a/source/net/yacy/cora/protocol/Domains.java +++ b/source/net/yacy/cora/protocol/Domains.java @@ -51,6 +51,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import java.util.concurrent.TimeUnit; +import java.util.concurrent.TimeoutException; import java.util.regex.Pattern; import java.util.regex.PatternSyntaxException; @@ -994,7 +995,7 @@ public class Domains { } }, 3000L, TimeUnit.MILLISECONDS); //ip = TimeoutRequest.getByName(host, 1000); // this makes the DNS request to backbone - } catch (final UncheckedTimeoutException e) { + } catch (final InterruptedException | TimeoutException e) { // in case of a timeout - maybe cause of massive requests - do not fill NAME_CACHE_MISS LOOKUP_SYNC.remove(host); return null;