Skip to content

Commit 837bb73

Browse files
committed
[java] Bringing back catch clause as #10063 should be enough
1 parent 61d4654 commit 837bb73

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

java/src/org/openqa/selenium/net/HostIdentifier.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
import java.nio.charset.Charset;
2929
import java.util.Enumeration;
3030
import java.util.concurrent.TimeUnit;
31-
import java.util.logging.Level;
3231
import java.util.logging.Logger;
3332

3433
public class HostIdentifier {
@@ -61,6 +60,10 @@ private static String resolveHostName() {
6160
host = reader.readLine();
6261
}
6362
}
63+
} catch (InterruptedException e) {
64+
log.log(WARNING, "Failed to resolve host name", e);
65+
Thread.currentThread().interrupt();
66+
throw new RuntimeException(e);
6467
} catch (Throwable e) {
6568
// fall through
6669
log.log(WARNING, "Failed to resolve host name", e);

0 commit comments

Comments
 (0)