Skip to content

Commit dd7b088

Browse files
committed
Refactor VirtualMultithreadIoEventLoopGroup and tests to use try-with-resources for better resource management
1 parent eb5b572 commit dd7b088

2 files changed

Lines changed: 232 additions & 232 deletions

File tree

core/src/main/java/io/netty/loom/VirtualMultithreadIoEventLoopGroup.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,10 @@ protected IoEventLoop newChild(Executor executor, IoHandlerFactory ioHandlerFact
8282

8383
@Override
8484
public void close() {
85-
try {
86-
shutdownGracefully(0, 0, TimeUnit.SECONDS).get();
87-
} catch (Throwable _) {
85+
try {
86+
shutdownGracefully(0, 0, TimeUnit.SECONDS).get();
87+
} catch (Throwable _) {
8888

89-
}
90-
}
89+
}
90+
}
9191
}

0 commit comments

Comments
 (0)