ing
This commit is contained in:
@@ -68,7 +68,6 @@ public abstract class Server {
|
||||
this.init();
|
||||
|
||||
ChannelFuture cf = this.bind(serverBootstrap);
|
||||
cf.sync();
|
||||
this.onStart();
|
||||
|
||||
cf.channel().closeFuture().sync();
|
||||
@@ -84,7 +83,7 @@ public abstract class Server {
|
||||
}
|
||||
|
||||
protected ChannelFuture bind(ServerBootstrap serverBootstrap) throws Exception {
|
||||
return serverBootstrap.bind(address);
|
||||
return serverBootstrap.bind(address).sync();
|
||||
}
|
||||
|
||||
protected abstract void init() throws Exception;
|
||||
|
||||
Reference in New Issue
Block a user