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