This commit is contained in:
Looly
2023-04-12 01:22:54 +08:00
parent d2e5155ac5
commit a96a95c988
216 changed files with 480 additions and 480 deletions

View File

@@ -161,7 +161,7 @@ public class AioServer implements Closeable {
public void close() {
IoUtil.closeQuietly(this.channel);
if (null != this.group && ! this.group.isShutdown()) {
if (null != this.group && !this.group.isShutdown()) {
try {
this.group.shutdownNow();
} catch (final IOException e) {

View File

@@ -80,7 +80,7 @@ public class NioClient implements Closeable {
// 等待建立连接
//noinspection StatementWithEmptyBody
while (! channel.finishConnect()){}
while (!channel.finishConnect()){}
} catch (final IOException e) {
close();
throw new IORuntimeException(e);