We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 61d4654 commit 837bb73Copy full SHA for 837bb73
1 file changed
java/src/org/openqa/selenium/net/HostIdentifier.java
@@ -28,7 +28,6 @@
28
import java.nio.charset.Charset;
29
import java.util.Enumeration;
30
import java.util.concurrent.TimeUnit;
31
-import java.util.logging.Level;
32
import java.util.logging.Logger;
33
34
public class HostIdentifier {
@@ -61,6 +60,10 @@ private static String resolveHostName() {
61
60
host = reader.readLine();
62
}
63
+ } catch (InterruptedException e) {
64
+ log.log(WARNING, "Failed to resolve host name", e);
65
+ Thread.currentThread().interrupt();
66
+ throw new RuntimeException(e);
67
} catch (Throwable e) {
68
// fall through
69
log.log(WARNING, "Failed to resolve host name", e);
0 commit comments