diff --git a/transport-native-unix-common/src/main/java/io/netty/channel/unix/Errors.java b/transport-native-unix-common/src/main/java/io/netty/channel/unix/Errors.java index ef85ea0ec2..11fde004e1 100644 --- a/transport-native-unix-common/src/main/java/io/netty/channel/unix/Errors.java +++ b/transport-native-unix-common/src/main/java/io/netty/channel/unix/Errors.java @@ -107,7 +107,7 @@ public final class Errors { } } - static void throwConnectException(String method, int err) + public static void throwConnectException(String method, int err) throws IOException { if (err == ERROR_EALREADY_NEGATIVE) { throw new ConnectionPendingException();