ing
This commit is contained in:
parent
414c2cdb2f
commit
57eda39031
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user