fix: небольшие исправления
This commit is contained in:
@@ -70,6 +70,7 @@ public class Core {
|
||||
sj.add("asys.api");
|
||||
sj.add("org.slf4j;version=1.7.21");
|
||||
sj.add("org.slf4j.helpers;version=1.7.21");
|
||||
sj.add("org.slf4j.spi;version=1.7.21");
|
||||
return sj.toString();
|
||||
}
|
||||
|
||||
|
||||
@@ -29,11 +29,7 @@ public class Server {
|
||||
workerGroup = new NioEventLoopGroup();
|
||||
|
||||
ServerBootstrap serverBootstrap = createServerBootstrap();
|
||||
try {
|
||||
serverBootstrap.bind(host, port).sync().channel().closeFuture().sync();
|
||||
} catch (InterruptedException e) {
|
||||
shutdown();
|
||||
}
|
||||
serverBootstrap.bind(host, port);
|
||||
}
|
||||
|
||||
public void shutdown() {
|
||||
|
||||
Reference in New Issue
Block a user