diff --git a/src/main/java/io/lettuce/core/resource/IOUringProvider.java b/src/main/java/io/lettuce/core/resource/IOUringProvider.java index 781c7c36cf..edb065f1ba 100644 --- a/src/main/java/io/lettuce/core/resource/IOUringProvider.java +++ b/src/main/java/io/lettuce/core/resource/IOUringProvider.java @@ -60,9 +60,9 @@ public class IOUringProvider { try { Class.forName("io.netty.incubator.channel.uring.IOUring"); availability = IOUring.isAvailable(); - } catch (ClassNotFoundException e) { + } catch (ClassNotFoundException | ExceptionInInitializerError e) { availability = false; - } + } IOURING_AVAILABLE = availability;